09.06.2012, 10:43
How would I restrict a hunter vehicle? Here is my code
I Will +Rep who ever helps me
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid != 425 )
{
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
RemovePlayerFromVehicle(playerid);
SetPlayerPos(playerid, slx, sly, slz+1.5);
PlayerPlaySound(playerid, 1130, slx, sly, slz+1.3);
SendClientMessage(playerid, COLOR_GREEN, "Your not allowed to enter this vehicle");
return 1;
}
return 1;
}