04.03.2010, 16:23
ok, i FINALLY made a registration script, i want to make it so if a new player joins, it says Welcome please register, but also check if the player has registered before, if so saying Automaticly logged in!
my code.
my code.
Код:
new name[MAX_PLAYER_NAME]; tmp = strtok(cmdtext, idx); GetPlayerName(playerid, name, sizeof(name)); if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /register [password]"); format(file,sizeof(file),"%s.ini",name);