How to fix this!!
#3

Hi

try-
PHP код:
//Under OnPlayerDeath
    
new pName[MAX_PLAYER_NAME],tName[MAX_PLAYER_NAME],targetid,string[125];
    if(
gTeam[killerid] == PoliceTeam(GetPlayerSkin(playerid)) && gTeam[playerid] != RobberTeam(GetPlayerSkin(playerid))) 
        {
            if(
GetPlayerWantedLevel(playerid) <= && GetPlayerWantedLevel(playerid) >= 30)
            {
                
SetPlayerScore(killeridGetPlayerScore(killerid)+1);
                
SetPlayerScore(playeridGetPlayerScore(playerid)-1);
                
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
                
GetPlayerName(killerid,tName,MAX_PLAYER_NAME);
                
                
format(stringsizeof(string), "{E6FD00}Officer %s[%d] has {00E6FD}Taken Down {E6FD00}%s[%d] which is at wanted level of %d!"tNamekilleridpNameplayeridGetPlayerWantedLevel(playerid));
                
SendClientMessageToAll(-1,string);
                
format(stringsizeof(string), "~b~Taken Down ~W~%s(%d)"pNameplayerid);
                
GameTextForPlayer(killeridstring70005);
                new 
Randomm random(sizeof(RandommJailSpawns));
                
SetPlayerPos(playeridRandommJailSpawns[Randomm][0], RandommJailSpawns[Randomm][1], RandommJailSpawns[Randomm][2]);
                
SetPlayerFacingAngle(playeridRandommJailSpawns[Randomm][2]);
                
SetPlayerInterior(playerid3);
                
pJailTimerID[playerid] = SetTimerEx("pJailTimer"1000true"i"playerid);
                
pJailCount[playerid] = 80 random(100);
                
ResetPlayerWeapons(playerid);
                
SetPlayerColor(playeridCOLOR_WHITE);
                
SetPlayerWantedLevel(playerid,0);
                
SetPlayerHealth(playerid5000000);       
            }
        } 
Reply


Messages In This Thread
How to fix this!! - by Thanks - 12.05.2018, 12:26
Re: How to fix this!! - by Sew_Sumi - 12.05.2018, 12:36
Re: How to fix this!! - by TadePoleMG - 12.05.2018, 12:37
Re: How to fix this!! - by Sew_Sumi - 12.05.2018, 12:38
Re: How to fix this!! - by Thanks - 13.05.2018, 12:09
Re: How to fix this!! - by Dayrion - 13.05.2018, 12:16
Re: How to fix this!! - by Lokii - 13.05.2018, 12:20
Re: How to fix this!! - by Sew_Sumi - 13.05.2018, 12:47
Re: How to fix this!! - by RedRex - 13.05.2018, 12:56
Re: How to fix this!! - by RedRex - 13.05.2018, 18:28

Forum Jump:


Users browsing this thread: 1 Guest(s)