What's wrong with it.
#1

PHP код:
if(gTeam{killerid} == CIVILIANS)
    {
        new 
string[256], copmsg[256], ID;
        
SetPlayerWantedLevelEx(killeridGetPlayerWantedLevel(killerid) + 6);
        
format(stringsizeof(string), "Comitted A Crime: Murder - Wanted Level %d"GetPlayerWantedLevel(killerid));
        
SendClientMessage(killeridREDstring);
        
format(copmsgsizeof(copmsg), "Suspect %s (%d) has committed 'Murder' near %s"GetName(playerid), playeridReturnPlayerZone(ID));
        
SendRadioMessageToCops(copmsg);
        
pInfo[killerid][pKills] ++;
        
pInfo[playerid][pDeaths] ++;
        
pInfo[playerid][pCrimes] ++;
          
pInfo[killerid][pWantedLevel] = pInfo[killerid][pWantedLevel] + 6;
        return 
1;
    }
    if(
GetPlayerWantedLevel(playerid) >= 4)
    {
            if(
gTeam{killerid} == COPS)
            {
                new 
string[356];
                
SetPlayerScore(killeridGetPlayerScore(killerid)+1);
                
SetPlayerScore(playeridGetPlayerScore(playerid)-1);
                
format(stringsizeof(string), "%s (%d) has been taken down by Officer %s (%d)!",GetName(playerid),playerid,GetName(killerid),killerid);
                
SendClientMessageToAll(COLOR_CYAN,string);
                
GoToJail{playerid} = true;
                
GivePlayerCashEx(killerid1000);
                
pInfo[killerid][pKills] ++;
                
pInfo[playerid][pDeaths] ++;
                
pInfo[killerid][pArrest] ++;
                
SetPlayerWantedLevelEx(playerid0);
                return 
1;
            }
    } 
Well, Im using this. Well, I want if civilian killed a player so he gets 6 star and if a cop killed criminals who has more than 4 stars so he shouldn't get 6 stars . But it gives to cop 6 stars for murdering. What's wrng here. i don't see anything
Reply
#2

That doesn't seem to be the full code under OnPlayerDeath...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)