- 0
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
WiLi11
Nick:WiLi
Problema: Cand dau /wanted nu-mi apar jucatorii care au wanted pe server
Erori / warnings:-
Lini/script:
if(strcmp(cmd, "/wanted", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gTeam[playerid] == 2 || IsACop(playerid) || (PlayerInfo[playerid][pAdmin] >= 7))
{
new x;
SendClientMessage(playerid, COLOR_2RED, "{F3FF02}|____ Suspectii SERVER ____|");
for(new i=0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i))
{
if(WantedLevel > 0)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "{F3FF02}%s%s are Wanted %d", string,giveplayer,WantedLevel);
x++;
if(x > 3) {
SendClientMessage(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] = '.';
SendClientMessage(playerid, COLOR_YELLOW, string);
}
}
else
{
SendClientMessage(playerid, COLOR_2RED, " Nu esti in PD/NG/FBI !");
}
}//not connected
return 1;
}
Ai incercat sa rezolvi singur ?:Da, am reusit sa rezolv o parte,adica aparea /wanted-ul doar la cei care luau wanted cu comanda /su ... Mai sus este o versiune mai veche
3 answers to this question
Recommended Posts