[DUDA]їGuardar ids?
#2

Claro, podrнas hacer un array, por ejemplo:

pawn Код:
new bool:IsWorking[MAX_PLAYERS];
Y que cuando use /ruta se ponga en true y cuando termine se ponga en false.
Luego haces un comando con un bucle que busque los usuarios con IsWorking en true. Luego obtienes el nombre de cada usuario y lo muestras al jugador/admin.

Ejemplo del bucle:

pawn Код:
for (new i = 0; i < MAX_PLAYERS; i++)
{
    if (IsWorking[i] == true)
    {
        new name[25];
        GetPlayerName(i, name, 25);
        SendClientMessage(playerid, -1, name);
    }
}
Reply


Messages In This Thread
[DUDA]їGuardar ids? - by chusothe41 - 27.07.2014, 11:00
Respuesta: [DUDA]їGuardar ids? - by unuky - 27.07.2014, 11:28
Respuesta: [DUDA]їGuardar ids? - by chusothe41 - 27.07.2014, 12:56

Forum Jump:


Users browsing this thread: 1 Guest(s)