Jail/KIll BUG
#6

Call the OnPlayerDeath,

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);
                        return 
1;
            }
      return 
1;

You can find the interior ID over here : http://weedarr.wikidot.com/interior

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