#include <a_samp>new gTeam[MAX_PLAYERS];#define TEAM_RENDOR 0 // Rendõr#define TEAM_PIZZA 1 //Pizzás#define TEAM_SZERELO 2 //Szerelõ#define TEAM_MENTOS 3 //Mentõs#define TEAM_TAXI 4 //Taxispublic OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){if (RendorJarmu(vehicleid) && gTeam[playerid] == TEAM_RENDOR){RemovePlayerFromVehicle(playerid);SendClientMessage(playerid, 0xFF1717FF, \"Ez a jármûvet csak Rendõr használhatja!\");}if (PizzaJarmu(vehicleid) && gTeam[playerid] == TEAM_PIZZA){RemovePlayerFromVehicle(playerid);SendClientMessage(playerid, 0xFF1717FF, \"Nem vagy Pizza Szállító!!\");}if (SzereloJarmu(vehicleid) && gTeam[playerid] == TEAM_SZERELO){RemovePlayerFromVehicle(playerid);SendClientMessage(playerid, 0xFF1717FF, \"Ezt a jármûvet csak Szerelõ használhatja!\");}if (MentosJarmu(vehicleid) && gTeam[playerid] == TEAM_MENTOS){RemovePlayerFromVehicle(playerid);SendClientMessage(playerid, 0xFF1717FF, \"Ezt a jármûvet csak Mentõs használhatja!\");}if (TaxisJarmu(vehicleid) && gTeam[playerid] == TEAM_TAXI){RemovePlayerFromVehicle(playerid);SendClientMessage(playerid, 0xFF1717FF, \"Ezt a jármûvet csak Taxis használhatja!\");}return 1;}stock RendorJarmu(vehid){ new model = GetVehicleModel(vehid);if(model == 425 || model == 432 || model == 470 || model == 490 || model == 497 || model == 596 || model == 598 || model == 599 || model == 601 || model == 523 || model == 430 || model == 427) return 1;return 1;}stock PizzaJarmu(vehid){ new model = GetVehicleModel(vehid);if(model == 448) return 1;return 1;}stock SzereloJarmu(vehid){ new model = GetVehicleModel(vehid);if(model == 525) return 1;return 1;}stock MentosJarmu(vehid){ new model = GetVehicleModel(vehid);if(model == 416) return 1;return 1;}stock TaxisJarmu(vehid){ new model = GetVehicleModel(vehid);if(model == 420) return 1;return 0;}
stock RendorJarmu(vehid){ new model = GetVehicleModel(vehid);if(model == 425 || model == 432 || model == 470 || model == 490 || model == 497 || model == 596 || model == 598 || model == 599 || model == 601 || model == 523 || model == 430 || model == 427) return 1; // Valamelyiknek return 0; kell lennie.return 1; // vagy ennek return 0; kell lennie.}
if (RendorJarmu(vehicleid) && gTeam[playerid] == TEAM_RENDOR){RemovePlayerFromVehicle(playerid);SendClientMessage(playerid, 0xFF1717FF, \"Ez a jármûvet csak Rendõr használhatja!\");}
#include <a_samp>new gTeam[MAX_PLAYERS];#define TEAM_RENDOR 0 // Rendõr#define TEAM_PIZZA 1 //Pizzás#define TEAM_SZERELO 2 //Szerelõ#define TEAM_MENTOS 3 //Mentõs#define TEAM_TAXI 4 //Taxispublic OnPlayerStateChange(playerid, newstate, oldstate){ new vehicleid; vehicleid = GetPlayerVehicleId(playerid); if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER) {if (RendorJarmu(vehicleid) && gTeam[playerid] != TEAM_RENDOR){RemovePlayerFromVehicle(playerid);SendClientMessage(playerid, 0xFF1717FF, \"Ez a jármûvet csak Rendõr használhatja!\");}if (PizzaJarmu(vehicleid) && gTeam[playerid] != TEAM_PIZZA){RemovePlayerFromVehicle(playerid);SendClientMessage(playerid, 0xFF1717FF, \"Nem vagy Pizza Szállító!!\");}if (SzereloJarmu(vehicleid) && gTeam[playerid] != TEAM_SZERELO){RemovePlayerFromVehicle(playerid);SendClientMessage(playerid, 0xFF1717FF, \"Ezt a jármûvet csak Szerelõ használhatja!\");}if (MentosJarmu(vehicleid) && gTeam[playerid] != TEAM_MENTOS){RemovePlayerFromVehicle(playerid);SendClientMessage(playerid, 0xFF1717FF, \"Ezt a jármûvet csak Mentõs használhatja!\");}if (TaxisJarmu(vehicleid) && gTeam[playerid] != TEAM_TAXI){RemovePlayerFromVehicle(playerid);SendClientMessage(playerid, 0xFF1717FF, \"Ezt a jármûvet csak Taxis használhatja!\");} }return 1;}stock RendorJarmu(vehid){ new model = GetVehicleModel(vehid);if(model == 425 || model == 432 || model == 470 || model == 490 || model == 497 || model == 596 || model == 598 || model == 599 || model == 601 || model == 523 || model == 430 || model == 427) return 1;return 1;}stock PizzaJarmu(vehid){ new model = GetVehicleModel(vehid);if(model == 448) return 1;return 1;}stock SzereloJarmu(vehid){ new model = GetVehicleModel(vehid);if(model == 525) return 1;return 1;}stock MentosJarmu(vehid){ new model = GetVehicleModel(vehid);if(model == 416) return 1;return 1;}stock TaxisJarmu(vehid){ new model = GetVehicleModel(vehid);if(model == 420) return 1;return 0;}
Error: error 017: undefined symbol \"vehicleid\"