Vip Car Help
#4

pawn Code:
//Global - On top of script
new VIP_CAR1;

//GameModeInit
VIP_CAR1 = AddStaticVehicle(561,2170.4277,1973.5856,10.6340,88.5622,1,255);

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == VIP_CAR1)
    {
        if(pInfo[playerid][VIPLevel] < 2)
        {
            SendClientMessage(playerid, 0xFF0000FF, "You need to be VIP Member (Level 2) to use this vehicle.");
            RemovePlayerFromVehicle(playerid);
        }
    }
    return 1;
}

// Code from iPLEOMAX
Reply


Messages In This Thread
Vip Car Help - by Salsa - 29.09.2011, 16:23
Re: Vip Car Help - by iPLEOMAX - 29.09.2011, 16:28
Re: Vip Car Help - by Salsa - 29.09.2011, 16:44
Re: Vip Car Help - by Kingunit - 29.09.2011, 16:51
Re : Vip Car Help - by Amine_Mejrhirrou - 14.05.2012, 06:40
Re: Vip Car Help - by Ballu Miaa - 14.05.2012, 07:23
Re : Vip Car Help - by Amine_Mejrhirrou - 14.05.2012, 09:12
Re: Re : Vip Car Help - by Ballu Miaa - 14.05.2012, 10:39
Re : Vip Car Help - by Amine_Mejrhirrou - 14.05.2012, 17:30

Forum Jump:


Users browsing this thread: 2 Guest(s)