15.10.2011, 07:26
Dont think ive done it right
The money is saving now as i can see it in the user files but it doesnt give you the money when you log in again.
Код:
//============================================================================== // ON PLAYERSPAWN //============================================================================== public OnPlayerSpawn(playerid) { if(PVar[playerid][pLastX] == 0.0 && PVar[playerid][pLastY] == 0.0) { new RPos = random(sizeof(RandSpawns)); SetPlayerPos(playerid, RandSpawns[RPos][0], RandSpawns[RPos][1], RandSpawns[RPos][2]); } else SetPlayerPos(playerid, PVar[playerid][pLastX], PVar[playerid][pLastY], PVar[playerid][pLastZ]); return 1; }