19.06.2010, 03:58
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new string[128], pNick[20];
GetPlayerName(playerid, pNick, sizeof pNick);
format(string, sizeof string, "%s (%d) has stolen a vehicle!", pNick, playerid);
SendClientMessageToAll(0xFF0000FF, string);
switch(GetPlayerWantedLevel(playerid))
{
case 0, 1, 2, 3, 4: SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) +2);
case 5, 6: SetPlayerWantedLevel(playerid, 6);
}
}
return 1;
}