[Pedido] Comando para setar e puxar jogadores
#2

PHP код:
CMD:setarid(playerid, params[])
{
    new 
id;
    if(
sscanf(params, "d", id))
        return 
SendClientMessage(playerid, color, "Use: /setarid id");
    
SpawnPlayer(id);
    
SendClientMessage(id, color, "Vc foi setado por um adm");
    return 
1;
} 
Nгo testei o debaixo

PHP код:
CMD:setarperto(playerid)
{
    new 
Pos[3];
    
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
    for(new 
i; i < MAX_PLAYERS+1; i++)
    {
        if(
IsPlayerInRangeOfPoint(i, 50.0, Pos[0], Pos[1], Pos[2]))
        {
            
SpawnPlayer(i);
        }
    }
    return 
1;
} 
Reply


Messages In This Thread
Comando para setar e puxar jogadores - by Fix3r - 10.02.2017, 18:14
Re: Comando para setar e puxar jogadores - by IlanZ - 10.02.2017, 18:17
Re: Comando para setar e puxar jogadores - by Showzs - 10.02.2017, 18:22
Re: Comando para setar e puxar jogadores - by Fix3r - 10.02.2017, 18:31

Forum Jump:


Users browsing this thread: 1 Guest(s)