pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if(PlayerInfo[playerid][pJob] != 1)
{
for(new i=0; i<sizeof(mechanicvehicles); i++)
{
if(vehicleid == mechanicvehicles[i])
{
SetPlayerPos(playerid, x, y, z);
SendClientMessage(playerid, COLOR_NORMALRED, "( ! ) Only Mechanics can use This Vehicle");
break;
}
}
}
return 1;
}