How to get multiple ID's?
#9

pawn Код:
dcmd_getplayers(playerid, params[])
{
    new GPL[9];
    new VirWorld = GetPlayerVirtualWorld(playerid);
    new Int = GetPlayerInterior(playerid);
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    if(IsNull(params)) { SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /getplayers [ID] (Up to 10 players at a time)"); return 1; }
    sscanf(params, "uuuuuuuuuu", GPL[0], GPL[1], GPL[2], GPL[3], GPL[4], GPL[5], GPL[6], GPL[7], GPL[8], GPL[9])
    for(new i=0; i<10; i++)
    {
        if(IsPlayerConnected(GPL[i] && GPL[i] != INVALID_PLAYER_ID)
        {
            SetPlayerPos(GPL[i], X, Y, Z));
            SetPlayerVirtualWorld(GPL[i], VirWorld);
            SetPlayerInterior(GPL[i], Int);
        }
    }
}
Reply


Messages In This Thread
How to get multiple ID's? - by Super_Panda - 16.12.2011, 00:38
Respuesta: How to get multiple ID's? - by Super_Panda - 16.12.2011, 00:47
Respuesta: How to get multiple ID's? - by Super_Panda - 16.12.2011, 01:12
Re: How to get multiple ID's? - by Jefff - 16.12.2011, 01:14
Respuesta: How to get multiple ID's? - by Super_Panda - 16.12.2011, 01:16
Re: How to get multiple ID's? - by [ABK]Antonio - 16.12.2011, 01:25
Respuesta: How to get multiple ID's? - by Super_Panda - 16.12.2011, 01:31
Re: How to get multiple ID's? - by Jefff - 16.12.2011, 01:33
Re: How to get multiple ID's? - by Rob_Maate - 16.12.2011, 01:33
Re: How to get multiple ID's? - by Rob_Maate - 16.12.2011, 01:38

Forum Jump:


Users browsing this thread: 1 Guest(s)