02.03.2015, 13:26
(
Последний раз редактировалось Nabster; 03.03.2015 в 08:22.
Причина: FIXED
)
FIXED
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(ispassenger) { if(!IsVehicleOccupied(vehicleid)) { SendClientMessage(playerid, COLOR_RED, "Don't enter a vehicle without driver."); return ClearAnimations(playerid); } } return 1; }
stock IsVehicleOccupied(vehicleid) { for(new i =0; i < MAX_PLAYERS; i++) { if(IsPlayerInVehicle(i,vehicleid)) { return 1; } } return 0; }