Quote:
Originally Posted by KillerDVX
Call the OnPlayerDeath,
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;
}
You can find the interior ID over here : http://weedarr.wikidot.com/interior
KillerDVX,
|
WORKK!! TANKS YOU
AND !!
Now you have : When a man kills a policeman and wanted to receive crime department to be announced : All suspect killed a police unit