10.03.2010, 14:33
Hello,
Im making a privatecars script and its not kicking me from the truck?
Heres my code, I have it under OnPlayerStateChange
It dosent kick me, Anyone know why?
Im making a privatecars script and its not kicking me from the truck?
Heres my code, I have it under OnPlayerStateChange
pawn Код:
if (vehicleid == Torran)
{
if (OwnedCar[playerid] == 1) {
SendClientMessage(playerid, COLOR_ORANGE, "-------------------");
SendClientMessage(playerid, COLOR_WHITE, "Welcome to Torran's Truck");
SendClientMessage(playerid, COLOR_ORANGE, "-------------------");
}
else if (OwnedCar[playerid] != 1) {
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "You are not authorized to drive this vehicle");
}
}