21.03.2010, 23:11
Hello,
Im trying to make the script kick the player if they enter a taxi,
But it lets me drive them?
Im trying to make the script kick the player if they enter a taxi,
But it lets me drive them?
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER) {
if(GetVehicleModel(playerid) == 420) {
if(PlayerInfo[playerid][pJob] == 1) {
SendClientMessage(playerid, COLOR_WHITE, "* Hint: To go on duty type /fare *");
}
else {
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY, "* You do not have the keys to this vehicle *");
}
}
}
return 1;
}