[pawn]public OnPlayerStateChange(playerid, newstate, oldstate)
{
new kocsiid = GetPlayerVehicleID(playerid);
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
{
if(kocsiid == 499 || kocsiid == 596 || kocsiid == 597 || kocsiid == 598 || kocsiid == 599)
{
if(gTeam[playerid] != TEAM_CIVIL)
{
SendClientMessage(playerid, COLOR_RED, \"Nem vagy rendõr!\");
RemovePlayerFromVehicle(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREEN, \"Kapd el a bûnözõket!\");
}
}
}
return 1;
}[/pawn]