public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){if(gTeam[playerid] >= 1||gTeam[playerid] >= 3||gTeam[playerid] >= 4){if (RendorKocsik(vehicleid) && !ispassenger){ if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pMember]==3) {} else { //WantedPoints[playerid]+=2; //SetPlayerCriminal(playerid,255, \"Stealing A Police Vehicle\"); new Float:cx, Float:cy, Float:cz; GetPlayerPos(playerid, cx, cy, cz); SetPlayerPos(playerid, cx, cy, cz); }}if (Buszok(vehicleid) && !ispassenger){ if ( PlayerInfo[playerid][pJob] == 18 ) { SendClientMessage(playerid, COLOR_GREY,\"Munka megkezdéséhez használd a /munkakezdés parancsot.\"); } else { SendClientMessage(playerid,COLOR_GRAD2,\"Nem vagy buszsofõr!\"); TogglePlayerControllable(playerid, 1); RemovePlayerFromVehicle(playerid); }}if (IsNgCar(vehicleid) && !ispassenger){ if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pMember]==3) {} else { //WantedPoints[playerid]+=2; //SetPlayerCriminal(playerid,255, \"Stealing A Police Vehicle\"); new Float:cx, Float:cy, Float:cz; GetPlayerPos(playerid, cx, cy, cz); SetPlayerPos(playerid, cx, cy, cz); }}if (IsAnAmbulance(vehicleid) && !ispassenger){ if(PlayerInfo[playerid][pMember]==4 || PlayerInfo[playerid][pLeader]==4) { } else { new Float:cx, Float:cy, Float:cz; GetPlayerPos(playerid, cx, cy, cz); SetPlayerPos(playerid, cx, cy, cz); }}if (IsATank(vehicleid) && !ispassenger){ if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==3) {} else { SendClientMessage(playerid, COLOR_GREY,\"You don\'t know how to drive it yet.\"); }}if(IsAnOwnableCar(vehicleid) && CarInfo[vehicleid][cLock] == 1 && CarInfo[vehicleid][cOwned] == 1){ if(kerekbilincs[GetPlayerVehicleID(playerid)] != 0) { SendClientMessage(playerid, COLOR_LIGHTRED, \"Ezen az autón kerékbilincs van! Hívj szerelõt és leszedi!\"); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); return 1; } if(Admin(playerid, 3) && AdminDuty[playerid] == 1) { } else { new Float:cx, Float:cy, Float:cz; GetPlayerPos(playerid, cx, cy, cz); SetPlayerPos(playerid, cx, cy, cz); }}}return 1;}public IsAnInstructor(playerid){if(IsPlayerConnected(playerid)){ new leader = PlayerInfo[playerid][pLeader]; new member = PlayerInfo[playerid][pMember]; if(member==11){ return 1;}if(leader==11){ return 1;}}return 0;}public IsAMember(playerid){if(IsPlayerConnected(playerid)){ new leader = PlayerInfo[playerid][pLeader]; new member = PlayerInfo[playerid][pMember]; if(member==5 || member==6 || member==8 || member==14 || member==15 || member==16){ return 1;}if(leader==5 || leader==6 || leader==8 || leader==14 || leader==15 || leader==16){ return 1;}}return 0;}public IsACop(playerid){if(IsPlayerConnected(playerid)){ new leader = PlayerInfo[playerid][pLeader]; new member = PlayerInfo[playerid][pMember]; if(member==1 || member==2 || member==3){ return 1;}else if(leader==1 || leader==2 || leader==3){ return 1;}}return 0;}public IsAPDMember(playerid){if(IsPlayerConnected(playerid)){ new leader = PlayerInfo[playerid][pLeader]; new member = PlayerInfo[playerid][pMember]; if(member==1){ return 1;}else if(leader==1){ return 1;}}return 0;}public IsAnOwnableCar(vehicleid){if(vehicleid >= 200 && vehicleid <= 551) { return 1; } //kocsilimitreturn 0;}
#define TEAM_betonos 1234new gTeam[MAX_PLAYERS];
public OnPlayerStateChange(playerid,newstate,oldstate){if(newstate == PLAYER_STATE_DRIVER){new vehicleid = GetPlayerVehicleID(playerid); if(GetVehicleModel(vehicleid) == Jármû modell ID)//ide a jármû id-jét kell írni. { if(gTeam[playerid] == TEAM_betonos) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, red, \"Ez a jármû a betonkeverõké!\"); } }return 1;}
public OnPlayerStateChange(playerid,newstate,oldstate){if(newstate == PLAYER_STATE_DRIVER){ new vehicleid = GetPlayerVehicleID(playerid); if(GetVehicleModel(vehicleid) == Jármû modell ID)//ide a jármû id-jét kell írni. { if(gTeam[playerid] == TEAM_betonos) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, red, \"Ez a jármû a betonkeverõké!\"); } } if(GetVehicleModel(vehicleid) == Jármû modell ID)//ide a jármû id-jét kell írni. { if(gTeam[playerid] == TEAM_rendor) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, red, \"Ez a jármû a rendõröké!\"); } }return 1;}