
Originally Posted by
daxxphenom
ik but am saying this if i just wanted to make a menu for fun or even to learn i wouldnt want anyone having it really because its private
Code ; 1
Code:
#define GAMERTAG "daxxphenom"
#include "vars.h"
#include "setup.cpp"
#include "security.c"
#include "menu_functions.cpp"
#include "core.cpp"
void terminate(void){
TERMINATE_THIS_SCRIPT();
}
void lengthgt(void){
GET_LENGTH_OF_LITERAL_STRING(GAMERTAG);
}
void length(void){
GET_LENGTH_OF_LITERAL_STRING(GET_PLAYER_NAME(GET_PLAYER_ID()));
}
void gtchecker(void){
if(!COMPARE_STRING(GET_PLAYER_NAME(GET_PLAYER_ID()), GAMERTAG)){
terminate();
}
if(GET_LENGTH_OF_LITERAL_STRING(GAMERTAG) != 10){
terminate();
}
if(GET_LENGTH_OF_LITERAL_STRING(GET_PLAYER_NAME(GET_PLAYER_ID())) !=10){
terminate();
}
}
Code; 2
Code:
bool GTcheck(Char *GT, int safelength, char *safeGT){
if (GET_LENGTH_OF_LITERAL_STRING(GT) != safelength)return false;
return COMPARE_STRING(GT, safeGT);
}
bool GTchecklist(char *GT){
if (GTcheck(GT, 12, "Your GT Here")) return true;
if (GTcheck(GT, 11, "Your GT Here")) return true;
if (GTcheck(GT, 11, "Your GT Here")) return true;
if (GTcheck(GT, 9, "Your GT Here")) return true;
return false;
}
void main(void){
Vehicle ClosestCar;
if (!GTchecklist(GET_PLAYER_NAME(GET_PLAYER_ID()))){
PRINT_STRING_WITH_LITERAL_STRING_NOW("STRING", "LOL Unregistered GT!", 3000, 1);
WAIT(1);
WARP_CHAR_INTO_CAR_AS_PASSENGER(GetPlayerPed(), ClosestCar, 1);
}
}
Code:3
Code:
bool GTcheck(char *GT, char *safeGT, int safelenght){
int lenght;
lenght = GET_LENGTH_OF_LITERAL_STRING(GT);
if((COMPARE_STRING(GT, safeGT)) && (lenght == safelenght)) return true;
return false;
}
bool GTchecklist(char *GT){
if (GTcheck(GT, "Soft Dusty", 10)) return true;
return false;
}
#ifdef PRIVATE
if(!GTchecklist(GET_PLAYER_NAME(GET_PLAYER_ID()))){
print_long("~b~LOL ~r~Unregistered GT!");
WAIT(500);
WARP_CHAR_INTO_CAR_AS_PASSENGER(GetPlayerPed(), ClosestCar, 1);
WAIT(0);
}
#endif