11.07.2015, 16:22
Ah you wan't to add a wanted level ? (The stars) ?
Simple ^^
Try this :
Don't forget to REP if it was helpful ^^
KillerDVX,
Simple ^^
Try this :
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);
SetPlayerWantedLevel(playerid, YOUR VALUE);
return 1;
}
return 1;
}
KillerDVX,