20.04.2018, 17:01
Good day.
Can you please tell us how to make sure that when the first spawner appeared on the general spawn, and on the next spawned there, where was the last time.
Can you please tell us how to make sure that when the first spawner appeared on the general spawn, and on the next spawned there, where was the last time.
PHP код:
stock SetPos(playerid)
{
SetPlayerPos(playerid,pInfo[playerid][Pos][0],pInfo[playerid][Pos][1],pInfo[playerid][Pos][2]);
return 1;
}
public OnPlayerSpawn(playerid)
{
new RandomGS = random(sizeof(gRandomSkin));
SetPlayerSkin(playerid,gRandomSkin[RandomGS]);
SetPos(playerid);
}
stock SavePos(playerid)
{
new Float:PosX;
new Float:PosY;
new Float:PosZ;
GetPlayerPos(playerid,PosX,PosY,PosZ);
pInfo[playerid][Pos][0] = PosX;
pInfo[playerid][Pos][1] = PosY;
pInfo[playerid][Pos][2] = PosZ;
return true;
}