[Pomoc] Wanted Zvezdice

Započeo MEMOREX™️, Decembar 23, 2011, 23:15:30 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Moja
Detaljan opis problema: Kako da uradim na /wanted komandi a meni je wanted /suspect.(Zamenio sam).... Kad dam nekom WL 1 da mu se pokaze ona Zvezdica kao na SinglePlayer..... A kad wl 2 onda da mu se pokazu 2 zvezdice. i tako dalje...
Dio skripte:
Wanted komanda:

if(strcmp(cmd, "/wanted", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
      tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_DGOLD, "KORISTENJE: /wanted [WANTED LEVEL] [ID/DioImena] [razlog]");
return 1;
}
new wantedlvl;
wantedlvl = strval(tmp);
if(wantedlvl < 1 || wantedlvl > 6) { SendClientMessage(playerid, COLOR_LIGHTRED, "ERROR: Wanted Level nemoze ici ispod 1 ili preko 6."); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_DGOLD, "KORISTENJE: /wanted [WANTED LEVEL] [ID/DioImena] [razlog]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
            {
    if(IsPlayerConnected(giveplayerid))
    {
        if(giveplayerid != INVALID_PLAYER_ID)
        {
    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_DGOLD, "KORISTENJE: /wanted [WANTED LEVEL] [ID/DioImena] [razlog]");
return 1;
}
PlayerInfo[giveplayerid][pWantedLevel] += 1;
if(PlayerInfo[giveplayerid][pWantedLevel] >= 0)
{
    format(string, sizeof(string), "INFO: Izdali ste tjeralicu wanted levela %d za %s. Razlog: %s.", wantedlvl, giveplayer, (result));
    SendClientMessage(playerid, COLOR_GOLD, string);
    format(string, sizeof(string), "INFO: Policajac %s je izdao tjeralicu wanted levela %d za vama. Razlog: %s!", sendername, wantedlvl, (result));
    SendClientMessage(giveplayerid, COLOR_GOLD, string);
    format(string, sizeof(string), "INFO: Policajac %s je izdao tjeralicu %d stupnja za igraca %s. Razlog: %s.", sendername, wantedlvl, giveplayer, (result));
SendPoliceMessage(COLOR_LIGHTBLUE, string);
PlayerInfo[giveplayerid][pWantedLevel] += wantedlvl;
return 1;
                        }
                        else if(PlayerInfo[giveplayerid][pWantedLevel] == 6)
{
    format(string, sizeof(string), "ERROR: Osoba %s ima maksimalan wanted level - nemozete joj dati vise.", giveplayer);
    SendClientMessage(playerid, COLOR_LIGHTRED, string);
return 1;
                        }
format(string, sizeof(string), "AdmWarn: Policajac %s je raspisao tjeralicu za igracem %s. Razlog: %s.", sendername, giveplayer, (result));
SendAdminMessage(COLOR_LIGHTRED,string);
format(string, sizeof(string), "INFO: Policajac %s je raspisao tjeralicu za vama. Razlog: %s.", sendername, (result));
SendClientMessage(giveplayerid, COLOR_GOLD, string);
format(string, sizeof(string), "INFO: Izdali ste tjeralicu za %s. Razlog: %s.", giveplayer, (result));
SendClientMessage(giveplayerid, COLOR_GOLD, string);
return 1;
}
}//not connected
}
else
{
format(string, sizeof(string), "   %d nije aktivan igrac.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): Radi se o ovim zvedzicama - Click
Skriptam za pare