11.07.2015, 11:50
Call the OnPlayerDeath,
You can find the interior ID over here : http://weedarr.wikidot.com/interior
KillerDVX,
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
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(killerid, your jail pos);
SetPlayerInterior(killerid, THE INTERIOR ID);
return 1;
}
return 1;
}
KillerDVX,