19.02.2009, 22:59
try this:
but remember that that will send the player a message every second if their wanted level is greater than 0.
You may want to make a variable to check if it has already sent the message to the player.
pawn Код:
public WantedCheck()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(GetPlayerWantedLevel(i) > 0)
{
SendClientMessage(i, COLOR_RED, "== Lose Your Stars, fool!");
}
}
}
You may want to make a variable to check if it has already sent the message to the player.