17.09.2011, 06:23
Okey, I own a DM Server, so I want when a player kills someone he gets a wanted star, but it continues until its 6 stars.Can someone show me how to script it?
SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+1);
SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid)+1);
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID && GetPlayerWantedLevel(killerid) != 6) SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 1);
SetPlayerWantedLevel(playerid, 0);
return 1;
}