Pos for all
#3

PHP код:
CMD:makepos(playeridparams[])
{
    if(
IsPlayerAdmin(playerid))
    {
        new 
Float:pos[3];
        
GetPlayerPos(playeridpos[0],pos[1],pos[2]);
        
pInfo[playerid][posX] = pos[0];
          
pInfo[playerid][posY] = pos[1];
          
pInfo[playerid][posZ] = pos[2];
    }
    else
    {
        
SendClientMessage(playerid1" (( You have to be a rcon admin to do this )) ");
    }
    return 
1;
}
CMD:gotopos(playeridparams[])
{
    if(
IsPlayerAdmin(playerid))
    {
        for(new 
0MAX_PLAYERSi++)
        {
            
SetPlayerPos(i,pInfo[playerid][posX],pInfo[playerid][posY],pInfo[playerid][posZ]);
        }
    }
    else
    {
        
SendClientMessage(playerid1" (( You have to be a rcon admin to do this )) ");
    }
    return 
1;

you could try this ( didn't test this ), but add on the top of the page
PHP код:
enum PlayerData {
    
Float:posX,
    
Float:posY,
    
Float:posZ
}
new 
pInfo[MAX_PLAYERS][PlayerData]; 
Reply


Messages In This Thread
Pos for all - by suni - 16.12.2015, 20:56
Re: Pos for all - by prineside - 16.12.2015, 21:03
Re: Pos for all - by malackov - 16.12.2015, 21:04
Re: Pos for all - by suni - 16.12.2015, 21:14

Forum Jump:


Users browsing this thread: 1 Guest(s)