27.12.2012, 11:59
You want to restrict the vehicle to a certain job?I edited this of zGaming script replace the codes to the custom codes of you script.
P.S: dont use these heavy scripts if you cant handle them.
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(!ispassenger)
{
if(IsTaxiVehicle(vehicleid) && PlayerInfo[playerid][pJob] != yourslotoftaxijobhere)
{
new Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SendClientMessage(playerid, COLOR_ORANGE, " You cannot enter this vehicle as you are not a taxi driver.");
}
}
return 1;
}