lock- cars and skins
#3

Quote:
Originally Posted by MaykoX
I will give you an example how to do this,you can use SetVehicleParams but this is a better way in my opinion.

pawn Код:
OnPlayerStateChange

if(gang[playerid] == 1)
{
    new newcar = GetPlayerVehicleID(playerid);
if(newcar == 1)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        SendClientMessage(playerid,COLOR,"You are not allowed to drive this car");
        RemovePlayerFromVehicle(newcar);
    }
}
}
UNTESTED.
Just change the newcar == 1 to your car.
Reply


Messages In This Thread
lock- cars and skins - by E-Rage - 29.01.2010, 15:58
Re: lock- cars and skins - by MaykoX - 29.01.2010, 17:28
Re: lock- cars and skins - by Nakash - 29.01.2010, 17:34
Re: lock- cars and skins - by Naruto4 - 29.01.2010, 18:44
Re: lock- cars and skins - by Thebest96 - 16.07.2010, 06:43

Forum Jump:


Users browsing this thread: 4 Guest(s)