Spawn at zero coordinates
#1

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.
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;

Reply


Messages In This Thread
Spawn at zero coordinates - by Kireykin - 20.04.2018, 17:01
Re: Spawn at zero coordinates - by Kireykin - 20.04.2018, 17:34
Re: Spawn at zero coordinates - by jasperschellekens - 20.04.2018, 17:40

Forum Jump:


Users browsing this thread: 1 Guest(s)