29.01.2013, 14:08
hello
i am a newb and i dont know much of scripting
so please help me
i have used vehicles name as bot_vehs[200]
i have only used bot_vehs[0] till now and i don't want the player to be able to get into the vehicle but they should be allowed to get in passenger.
please help me
i am a newb and i dont know much of scripting
so please help me
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { new check,leave=0; check=GetPlayerVehicleID(playerid); if(bot_vehs[0] == check) leave=1; if(leave) RemovePlayerFromVehicle(playerid);
i have only used bot_vehs[0] till now and i don't want the player to be able to get into the vehicle but they should be allowed to get in passenger.
please help me
