Quote:
Originally Posted by Keyhead
pawn Код:
if(IsAHarvest(newcar)) { if(PlayerInfo[playerid][pJob] == 18) { if(FarmerVar[playerid] == 0) { SendClientMessage(playerid, COLOR_RED, "___________Farmer guide___________"); SendClientMessage(playerid, COLOR_WHITE, "** Farmer ** /startharvest, /stopharvest or /exit"); SendClientMessage(playerid, COLOR_RED, "__________________________________"); TogglePlayerControllable(playerid, 0); } else { SendClientMessage(playerid, COLOR_GREY, " You don't have keys of this vehicle !"); RemovePlayerFromVehicle(playerid); } }
Try that maybe, If it doesn't work then post the whole command and anything involved with it. I or someone may be able to help you then.
|
Well,it's not actualy a command.When you enter in the car it will appear that SCM for multiple times
And that code is after
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
All my faction and job cars are after this line
For an example,another code with cars
pawn Код:
if(newcar == med1 || newcar == med2 || newcar == med3 || newcar == med4 || newcar == med5)
{
if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { }
else
{
SendClientMessage(playerid,COLOR_PINK," You don't have the keys of this car !");
RemovePlayerFromVehicle(playerid);
}
}