17.02.2013, 05:15
Something like this?
And you have to add "gJob[playerid] = 0;" on "OnPlayerConnect" and "gJob[playerid] = 1;" in your job command.
I dont test it but i think will work.
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid == 408)
{
if(gJob[playerid] > 1)
{
//successfully start the job?
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, -1, "Your not in job to use that car");
}
}
return 1;
}
I dont test it but i think will work.