- 0
[GF/RP] problema /wanted
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Papana
am si io comanda /wanted
dar cand dau /wanted si un player are wanted nu arata wantedul
if(strcmp(cmd, "/wanted", true) == 0) { if(IsPlayerConnected(playerid)) { if(gTeam[playerid] == 2 || IsACop(playerid)) { new x; SCM(playerid, COLOR_LIGHTRED, "|_____________________________ Current Wanted Suspects _____________________________|"); for(new i=0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(WantedLevel[i] > 1) { GetPlayerName(i, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "%s%s: %d", string,giveplayer,WantedLevel[i]); x++; if(x > 3) { SCM(playerid, COLOR_YELLOW, string); x = 0; format(string, sizeof(string), ""); } else { format(string, sizeof(string), "%s, ", string); } } } } if(x <= 3 && x > 0) { string[strlen(string)-2] = '.'; SCM(playerid, COLOR_YELLOW, string); } } else { SCM(playerid, COLOR_GREY, " You're not a Cop / FBI / National Guard !"); } }//not connected return 1; }1 answer to this question
Recommended Posts