Vicente Grup: Administrators
Mesaje : 105 Puncte : 380 Reputatie : 2 Data de inscriere : 11/04/2013 Varsta : 30 Localizare : Center of the earth
| Subiect: Adaugare /jl Mar Mai 07, 2013 6:17 pm | |
| O simpla comanda prin care membri Police Departament/National Guard/Federal Bureau of Investigation pot sa vada lista cu playeri din jail. - Citat :
- if(strcmp(cmd, "/jaillist", true) == 0 || strcmp(cmd, "/jl", true) == 0)
{ if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3) { SendClientMessage(playerid, COLOR_GREEN, "|___Jail_List___|"); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pJailTime] > 0) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 256, "playerName: %s[ID:%d] - Jail Seconds Time [%d]", sendername,i,PlayerInfo[i][pJailTime]); SendClientMessage(playerid, COLOR_YELLOW, string); } } } } else { SendClientMessage(playerid,COLOR_GREY,"You are not a Leader of Police Departament/Federal Bureau of Investigation/National Guard!"); } } return 1; } Eu zic ca este un tutorial destul de simplu(dupa parerea mea). | |
|