28.03.2013, 13:38
use fexist.
I suppose you're saving them by the users name?
Then do something like this:
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 */ }