Gold Rims
#8

Enjoy!

On top of your script add:

pawn Код:
new IsWarned[MAX_PLAYERS] = 0;
And OnPlayerConnect:

pawn Код:
IsWarned[playerid] = 0;
pawn Код:
CMD:gr(playerid, params[])
{
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in the driver seat!");
    else if(GetPlayerMoney(playerid) <= 100000) return SendClientMessage(playerid, 0xFFFFFFFF, "You need 100 000$ to get gold rims!");
   
    else if(IsWarned[playerid] == 0)
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "Warning: This will remove 100 000$ from you. Type the command again to continue.");
        IsWarned[playerid] = 1;
    }
    else
    {
        IsWarned[playerid] = 0;
        GivePlayerMoney(playerid, -100000);
        AddVehicleComponent(GetPlayerVehicleID(playerid),1080);
        SendClientMessage(playerid, 0xFFFFFFFF, "You have replaced your rims with gold rims.");
    }
    return 1;
}
Reply


Messages In This Thread
Gold Rims - by NinjaChicken - 15.07.2012, 10:19
Re: Gold Rims - by xRotem - 15.07.2012, 10:22
Re: Gold Rims - by JaKe Elite - 15.07.2012, 10:24
Re: Gold Rims - by NinjaChicken - 15.07.2012, 10:25
Re: Gold Rims - by NinjaChicken - 15.07.2012, 10:51
Re: Gold Rims - by Dan. - 15.07.2012, 11:26
Re: Gold Rims - by NinjaChicken - 17.07.2012, 07:36
Re: Gold Rims - by Dan. - 17.07.2012, 12:18

Forum Jump:


Users browsing this thread: 1 Guest(s)