Skripta koju koristim:FG
Detaljan opis problema:Kako da stavim kad neko ima wanted lvl da se vidi na mapi i u board listi(msm tab)
Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
[Pomoc] Wanted lvl
853
pregleda
7
postova
27. Feb. 2012.
//---------------------------------------------------------------------------------
if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(OnDuty == 1 && PlayerInfo == 2 || OnDuty == 1 && PlayerInfo == 2 || OnDuty == 1 && PlayerInfo == 1 || OnDuty == 1 && PlayerInfo == 1 || OnDuty == 1 || OnDuty == 1 && PlayerInfo == 1 || OnDuty == 1 && PlayerInfo == 17 || OnDuty == 17) { }
else
{
SendClientMessage(playerid, COLOR_GREY, " Niste na duznosti!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/su)spect [ID Igraca/Dio Imena] [opis zlocina]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (gTeam == 2 || IsACop(playerid))
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (gTeam != 2)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/su)spect [ID Igraca/Dio Imena] [crime text]");
return 1;
}
if(WantedPoints == 0) { WantedPoints = 3; }
else { WantedPoints+= 2; }
SetPlayerCriminalEx(giveplayerid,playerid, result);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Ne mozete optuziti policajca !");
}
}
}
else
{
format(string, sizeof(string), " %d nije aktivan igrac.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Niste Policajac / FBI / Nacinalna Garda !");
}
}
return 1;
} evoGodfather
Novi Član
240 / 250 XP
🌱Početnik(0)
2,079
Postovi:
24
Teme:
Pridružio se:Feb. 2011
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava