Wanted Help
#1

hey iv made an wanted system that give me the wanted reason it is working fine but when I set my friend wanted I see him on the command but if I set another one I see the new wanted without my friend so how to fix it please?
PHP код:
CMD:wanted(playeridparams[])
{
     new 
string[256], playername[MAX_PLAYER_NAME], str[256], reas[256], mr;
     for(new 
b=0b<PLAYERSb++)
     {
         if(
GetPlayerWantedLevel(b) > 0) {
             
mr++;
         }
     }
     if(
mr==0) return SendClientMessage(playeridCOLOR_GREY"There are currently no wanted players.");
    for(new 
ii<PLAYERSi++)
    {
        if(
IsPlayerConnected2(i) && GetPlayerWantedLevel(i)>0)
        {
            
GetPlayerName(iplayernamesizeof(playername));
            
GetPVarString(i"WReason"reassizeof(reas));
            
format(string128"%s\n%s (ID:%d)\t%d\t%s\n",stringplayernameiGetPlayerWantedLevel(i), reas);
            
format(strsizeof(str), "Name\tLevel\tReason\n%s"string);
            
ShowPlayerDialog2(playeridDIALOG_WANTEDDIALOG_STYLE_TABLIST_HEADERS"Wanted Players"str"Done""");
            return 
1;
        }
    }
    return 
1;

Reply


Messages In This Thread
Wanted Help - by silverms - 03.06.2017, 19:24
Re: Wanted Help - by GoldenLion - 03.06.2017, 20:35
Re: Wanted Help - by silverms - 03.06.2017, 20:54
Re: Wanted Help - by Abagail - 03.06.2017, 21:06
Re: Wanted Help - by GoldenLion - 03.06.2017, 21:25
Re: Wanted Help - by silverms - 04.06.2017, 08:37

Forum Jump:


Users browsing this thread: 1 Guest(s)