[ajuda] Como criar comandos
#5

Ah eeee /procurados eu tenho
Quote:

if(strcmp(cmd, "/procurados", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gTeam[playerid] == 2 || IsACop(playerid) || gTeam[playerid] == 12)
{
new x;
SendClientMessage(playerid, COLOR_GREEN, "Suspeitos:");
for(new i=0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i))
{
if(WantedLevel[i] > 0)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "%s%s(%d): %d", string,giveplayer,i,WantedLevel[i]);
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_GREY, " Vocк nгo й um Cop / FBI / BOPE !");
}
}//not connected
return 1;
}

Reply


Messages In This Thread
[ajuda] Como criar comandos - by Rick_DR - 08.04.2010, 21:22
Re: [ajuda] Como criar comandos - by andmeida10 - 08.04.2010, 21:49
Re: [ajuda] Como criar comandos - by Rick_DR - 09.04.2010, 17:39
Re: [ajuda] Como criar comandos - by Junior_Vercetti - 09.04.2010, 17:43
Re: [ajuda] Como criar comandos - by Junior_Vercetti - 09.04.2010, 17:49
Re: [ajuda] Como criar comandos - by Rick_DR - 09.04.2010, 17:49
Re: [ajuda] Como criar comandos - by Junior_Vercetti - 09.04.2010, 17:56
Re: [ajuda] Como criar comandos - by RoamPT - 09.04.2010, 18:41
Re: [ajuda] Como criar comandos - by (o)Trydon - 09.04.2010, 19:07
Re: [ajuda] Como criar comandos - by andmeida10 - 10.04.2010, 07:45

Forum Jump:


Users browsing this thread: 1 Guest(s)