Looking for a function to check if a player is new
#4

use fexist.

I suppose you're saving them by the users name?

Then do something like this:

pawn Код:
new file[32], name[24];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),"Users/%s.ini", name);
if(!fexist(file)) { /* Set the player pos when he's not registered */ }
else if(fexist(file)) { /* Set the player pos when he's registered */ }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)