How to fix this!!
#10

Hello again, I've trying to edit the code!! you can do like this too

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
            if(
gTeam[killerid] == PoliceTeam(GetPlayerSkin(killerid)) && gTeam[playerid] == Civilian(GetPlayerSkin(playerid)))
            {
                switch(
GetPlayerWantedLevel(playerid))
                {
                    case 
.. 30:
                    {
                        new 
string2[170],tName[MAX_PLAYER_NAME], pName[MAX_PLAYER_NAME];
                        
SetPlayerScore(killeridGetPlayerScore(killerid)+1);
                        
SetPlayerScore(playeridGetPlayerScore(playerid)-1);

                        
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
                        
GetPlayerName(killerid,tName,MAX_PLAYER_NAME);

                        
format(string2sizeof(string2), "{E6FD00}Officer %s[%d] has {00E6FD}Taken Down {E6FD00}%s[%d] which is at wanted level of %d!"tNamekilleridpNameplayeridGetPlayerWantedLevel(playerid));
                        
SendClientMessageToAll(-1,string2);

                        
format(string2sizeof(string2), "~b~Taken Down ~W~%s(%d)"pNameplayerid);
                        
GameTextForPlayer(killeridstring270005);
                    }
                }
            }
      return 
1;

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: 4 Guest(s)