25.04.2011, 10:09
I want to skip class selection if a user is already registered
so I want to do something like
- if the file excists player should be spawned with
SetPlayerPos(playerid, PVar[playerid][pLastX], PVar[playerid][pLastY], PVar[playerid][pLastZ])
and if it doesnt exist then skin selection should do it's thing
so I want to do something like
Код:
new File[50]; format(File, sizeof(File), PFiles, pName(playerid)); if(fexist(File))
SetPlayerPos(playerid, PVar[playerid][pLastX], PVar[playerid][pLastY], PVar[playerid][pLastZ])
and if it doesnt exist then skin selection should do it's thing
Код:
public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, -2661.3604, 1932.9404, 225.7578); SetPlayerFacingAngle(playerid, 213.0498); return 1; }