Jail/KIll BUG
#10

Ah you wan't to add a wanted level ? (The stars) ?

Simple ^^

Try this :

PHP код:
public OnPlayerDeath(playeridkilleridreason

        new 
pname[24]; 
    new 
killername[24]; 
    new 
string[128]; 
        
GetPlayerName(playerid,pname,sizeof(pname)); 
    
GetPlayerName(killerid,killername,sizeof(killername)); 
if(
gTeam[killerid] == YOUR CRIMINAL TEAM && gTeam[playerid] == YOUR COP TEAM
        { 
                        
SendClientMessage(killerid,-1,"You killed a police officier and you'll be teleported to the jail"); 
                        
SetPlayerPos(killeridyour jail pos);  
                        
SetPlayerInterior(killeridTHE INTERIOR ID); 
                        
SetPlayerWantedLevel(playeridYOUR VALUE);
                        return 
1
            } 
      return 
1

Don't forget to REP if it was helpful ^^

KillerDVX,
Reply


Messages In This Thread
Jail/KIll BUG - by bimax999 - 11.07.2015, 09:38
Re: Jail/KIll BUG - by Michael B - 11.07.2015, 10:00
Re: Jail/KIll BUG - by bimax999 - 11.07.2015, 10:04
Re: Jail/KIll BUG - by Michael B - 11.07.2015, 10:08
Re: Jail/KIll BUG - by bimax999 - 11.07.2015, 11:13
Re : Jail/KIll BUG - by KillerDVX - 11.07.2015, 11:50
Re: Re : Jail/KIll BUG - by bimax999 - 11.07.2015, 13:55
Re : Jail/KIll BUG - by KillerDVX - 11.07.2015, 14:56
Re: Jail/KIll BUG - by bimax999 - 11.07.2015, 16:07
Re : Jail/KIll BUG - by KillerDVX - 11.07.2015, 16:22

Forum Jump:


Users browsing this thread: 10 Guest(s)