Owner's CAR
#3

Example script of what _Tommy say

frist make a new

like
pawn Код:
new mycar;
then create the car with mycar name

like
pawn Код:
mycar = AddStaticVehicle(blablablabla
then in when player change the state

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        new V = GetPlayerVehicleID(playerid);
        if(V == mycar)
        {
            if(IsPlayerAdmin(playerid))
            {
                return 1;
            }
            else
            {
                SendClientMessage(playerid,0xFF0000AA, "Admin vehicle");
                                 //removeplayervehiclething


            }
        }
    }
    return 1;
}
if u are admin u can enter in the car ... idk if work xD i dont remember
Reply


Messages In This Thread
Owner's CAR - by Stunt_Guy - 14.02.2011, 15:48
Re: Owner's CAR - by _Tommy - 14.02.2011, 15:53
Re: Owner's CAR - by iJumbo - 14.02.2011, 15:59
Re: Owner's CAR - by Stunt_Guy - 14.02.2011, 16:07

Forum Jump:


Users browsing this thread: 1 Guest(s)