25.04.2011, 08:50
pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new classid;
if(classid == 106)
{
new vehicleid=GetPlayerVehicleID(playerid);
GetVehicleModel(vehicleid);
if(GetVehicleModel(vehicleid) == 596)
{
SetPlayerWantedLevel(playerid,4);
SendClientMessageToAll(RED,"%s has stolen a polcie car");
SetPlayerColor(playerid,RED);
}
}
}
return 1;
}