11.06.2015, 18:15
it will work like this ?
Code:
public OnPlayerUpdate(playerid) { if (GetPlayerWantedLevel(playerid) > 6) { SetPlayerWantedLevel(playerid, 6); } SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid) + 4); format(string, sizeof(string), "Store Robbery - Wanted Level %d - Yellow", GetPlayerWantedLevel(playerid)); SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid) + 5); format(string, sizeof(string), "Store Robbery - Wanted Level %d - Red", GetPlayerWantedLevel(playerid)); SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid) + 6); format(string, sizeof(string), "Player Killed - Wanted Level %d - Red", GetPlayerWantedLevel(playerid)); SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid) + 7); format(string, sizeof(string), "Bank Robbery - Wanted Level %d - Red", GetPlayerWantedLevel(playerid)); return 1; }