CMD:rangad(playerid,params[]){ if(pInfo[playerid][pFrakcio] == SZFONOK || pInfo[playerid][pSzerv] == FBIFONOK || pInfo[playerid][pFrakcio] == TAXIFONOK || pInfo[playerid][pFrakcio] == RAFONOK || pInfo[playerid][pFrakcio] == TUZOLTOFONOK || pInfo[playerid][pFrakcio] == ADOFONOK || pInfo[playerid][pFrakcio] == SZFONOK || pInfo[playerid][pFrakcio] == MFONOK || pInfo[playerid][pFrakcio] == RFONOK || pInfo[playerid][pAdmin] >= 4) { new Rang[20]; if(sscanf(params, \"rs\", id, Rang)) return SendClientMessage(playerid, PIROS, \"Használat: /rangad < Név / Id > < Rang >\"); if(!IsPlayerConnected(id)) return SendClientMessage(playerid, PIROS, \"A játékos nem elérhetõ!\"); format(pInfo[playerid][pRang], MAX_PLAYER_NAME, \"%s\", Rang); SendClientMessage(playerid, NARANCS, \"* Rang kiosztva!\"); } else { SendClientMessage(playerid, PIROS, \"Nem vagy Frakció Leader!\"); } return 1;}
CMD:fbitagok(playerid, params[]){new S[128]; SendClientMessage(playerid, FONTOS, \"Elérhetõ FBI-osok:\");for(new i; i < MAX_PLAYERS; i++){if(IsPlayerConnected(i)){ if(pInfo[pSzerv] == FBIFONOK) { format(S, sizeof(S), \" %s, %s\", pInfo[pFNev], pInfo[playerid][pRang]); SendClientMessage(playerid, FONTOS, S); } else if(pInfo[pSzerv] == FBIOS) { format(S, sizeof(S), \" %s, %s\", pInfo[pFNev], pInfo[playerid][pRang]); SendClientMessage(playerid, FONTOS, S); }}}return 1;}
CMD:rangad(playerid,params[]){ if(pInfo[playerid][pFrakcio] == SZFONOK || pInfo[playerid][pSzerv] == FBIFONOK || pInfo[playerid][pFrakcio] == TAXIFONOK || pInfo[playerid][pFrakcio] == RAFONOK || pInfo[playerid][pFrakcio] == TUZOLTOFONOK || pInfo[playerid][pFrakcio] == ADOFONOK || pInfo[playerid][pFrakcio] == SZFONOK || pInfo[playerid][pFrakcio] == MFONOK || pInfo[playerid][pFrakcio] == RFONOK || pInfo[playerid][pAdmin] >= 4) { new Rang[20]; if(sscanf(params, \"us\", id, Rang)) return SendClientMessage(playerid, PIROS, \"Használat: /rangad < Név / Id > < Rang >\"); if(!IsPlayerConnected(id)) return SendClientMessage(playerid, PIROS, \"A játékos nem elérhetõ!\"); format(pInfo[playerid][pRang], MAX_PLAYER_NAME, \"%s\", Rang); SendClientMessage(playerid, NARANCS, \"* Rang kiosztva!\"); } else { SendClientMessage(playerid, PIROS, \"Nem vagy Frakció Leader!\");} return 1;}
CMD:fbitagok(playerid, params[]){new S[128]; SendClientMessage(playerid, FONTOS, \"Elérhetõ FBI-osok:\");for(new i; i < MAX_PLAYERS; i++){if(IsPlayerConnected(i)){ if(pInfo[pSzerv] == FBIFONOK) { format(S, sizeof(S), \" %s, %s\", pInfo[pFNev], pInfo[pRang]); SendClientMessage(playerid, FONTOS, S); } else if(pInfo[pSzerv] == FBIOS) { format(S, sizeof(S), \" %s, %s\", pInfo[pFNev], pInfo[pRang]); SendClientMessage(playerid, FONTOS, S); }}}return 1;}
format(pInfo[playerid][pRang], MAX_PLAYER_NAME, \"%s\", Rang);
format(pInfo[id][pRang], MAX_PLAYER_NAME, \"%s\", Rang);