new admincar;if(strcmp(\"/adminkocsi\", cmdtext, true) == 0) { if(!IsPlayerLAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000AA, \"Nem vagy adminisztrátor!\"); admincar=CreateVehicle(560, X, Y, Z, angle, 1, 1); AddVehicleComponent(admincar, 1026); // küszöb AddVehicleComponent(admincar, 1027); // küszöb AddVehicleComponent(admincar, 1141); // lök hátsó AddVehicleComponent(admincar, 1169); // lök elsõ AddVehicleComponent(admincar, 1032); // roof AddVehicleComponent(admincar, 1028); // kipufogó AddVehicleComponent(admincar, 1138); // spoiler SendClientMessage(playerid, 0xFF0606FF, \"Magadhoz hívtad az admin kocsit!\"); return 1;}
public OnPlayerEnterVehicle(playerid){new vehicleid = GetPlayerVehicleID(playerid);if(vehicleid == admincar) { if(!IsPlayerLAdmin(playerid)) { SendClientMessage(playerid, red, \"blablabla\"); RemovePlayerFromVehicle(playerid); ClearAnimations(playerid);}}return 1;}
if(strcmp(\"/adminkocsi\", cmdtext, true) == 0) { new admincar, Float:koordinata[4];if(!IsPlayerLAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000AA, \"Nem vagy adminisztrátor!\");GetPlayerPos(playerid, koordinata[0], koordinata[1], koordinata[2]);GetPlayerFacingAngle(playerid, koordinata[3]);admincar = CreateVehicle(560, koordinata[0], koordinata[1], koordinata[2], koordinata[3], 1, 1, -1); AddVehicleComponent(admincar, 1026); // küszöb AddVehicleComponent(admincar, 1027); // küszöb AddVehicleComponent(admincar, 1141); // lök hátsó AddVehicleComponent(admincar, 1169); // lök elsõ AddVehicleComponent(admincar, 1032); // roof AddVehicleComponent(admincar, 1028); // kipufogó AddVehicleComponent(admincar, 1138); // spoiler PutPlayerInVehicle(playerid, admincar, 0); SendClientMessage(playerid, 0xFF0606FF, \"Magadhoz hívtad az admin kocsit!\"); return 1;}