27.01.2015, 12:37
I want to unable players to enter the vehicle so i added
When i enter those vehicles it send to me the message but it allow me to drive the vehicle i want it to unable the player from enter the vehicle.
Please Help
!
PHP код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid == c1 || vehicleid == c2 || vehicleid == c3 || vehicleid == c4 || vehicleid == c5 || vehicleid == c6 || vehicleid == c7 || vehicleid == c8 || vehicleid == c9 || vehicleid == c10 || vehicleid == c11 || vehicleid == c12 || vehicleid == c13 || vehicleid == c14 || vehicleid == c15)
{
if(PlayerInfo[playerid][pDealer] == 0)
{
SendClientMessage(playerid, COLOR_RED, "This car is only for drug dealers you can't drive it");
return 0;
}
}
return 1;
}
Please Help
