25.09.2014, 11:41
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER) // Edited
{
if(IsAdminv(GetPlayerVehicleID(playerid)))
{
if(PlayerInfo[playerid][Admin] < 1)
{
new vehicleid;
vehicleid= GetPlayerVehicleID(playerid);
DestroyVehicle(vehicleid);
SendClientMessage(playerid, 0xFF0000FF, ""RED"ERROR:"GREY" Unauthorized Vehicle");
}
return 1; // Added
}
}
return 1;
}