Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: NeÓ§ poslato Februar 27, 2012, 11:28:17 PRE PODNE

Naslov: [Pomoc] Wanted lvl
Poruka od: NeÓ§ poslato Februar 27, 2012, 11:28:17 PRE PODNE
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)://
Naslov: Odg: [Pomoc] Wanted lvl
Poruka od: vlado_plavsic poslato Februar 27, 2012, 14:01:42 POSLE PODNE
http://wiki.sa-mp.com/wiki/SetPlayerColor

Dodaj u komandu za davanje wanteda.
Naslov: Odg: [Pomoc] Wanted lvl
Poruka od: NeÓ§ poslato Februar 27, 2012, 19:11:09 POSLE PODNE
//----------------------------------[SetCrim]-----------------------------------------------
if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if(OnDuty[playerid] == 1 && PlayerInfo[playerid][pMember] == 2 || OnDuty[playerid] == 1 && PlayerInfo[playerid][pLeader] == 2 || OnDuty[playerid] == 1 && PlayerInfo[playerid][pMember] == 1 || OnDuty[playerid] == 1 && PlayerInfo[playerid][pLeader] == 1 || OnDuty[playerid] == 1 || OnDuty[playerid] == 1 && PlayerInfo[playerid][pMember] == 1 || OnDuty[playerid] == 1 && PlayerInfo[playerid][pLeader] == 17 || OnDuty[playerid] == 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[playerid] == 2 || IsACop(playerid))
{
if(IsPlayerConnected(giveplayerid))
{
    if(giveplayerid != INVALID_PLAYER_ID)
    {
if (gTeam[giveplayerid] != 2)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
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[giveplayerid] == 0) { WantedPoints[giveplayerid] = 3; }
else { WantedPoints[giveplayerid]+= 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;
}
evo
Naslov: Odg: [Pomoc] Wanted lvl
Poruka od: [TG:RP]$--L84S--$ poslato Februar 27, 2012, 21:20:28 POSLE PODNE
Sad stavi tu : SetPlayerColor(playerid,boja);
Naslov: Odg: [Pomoc] Wanted lvl
Poruka od: NeÓ§ poslato Februar 28, 2012, 07:51:39 PRE PODNE
Moze lock resio sam problem :D
Naslov: Odg: [Pomoc] Wanted lvl
Poruka od: Blaeks poslato Februar 28, 2012, 08:47:10 PRE PODNE
Citat: [TG]$--L84S--$ poslato Februar 27, 2012, 21:20:28 POSLE PODNE
Sad stavi tu : SetPlayerColor(playerid,boja);
|

Ja mislim giveplayerid zbog toga sto policajac daje wanted drugom igracu  :P
Naslov: Odg: [Pomoc] Wanted lvl
Poruka od: Snich poslato Februar 28, 2012, 09:20:26 PRE PODNE
Citat: Zeratul poslato Februar 28, 2012, 07:51:39 PRE PODNE
Moze lock resio sam problem :D

LOCK!