How to create a command to bring everyone
#8

So that the players don't get gathered on a single spot and get stuck:
pawn Код:
if(!strcmp("/getall", cmdtext, true))
{
    new Float:x, Float:y, Float:z, Float:c=0.0;
    GetPlayerPos(playerid, x, y, z);
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if (IsPlayerConnected(i))
        {
            SetPlayerPos(i,x+c,y+c,z);
            c=c+0.4;
        }
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)