Help: vip command!
#1

Hello!

I need a little help with my /vcoloroff command...So I already have a /vcoloron which enable a Vip Color..But now I need to know, how to make that when a Vip player do /vcoloroff, then he will have the same color as he had beffore he did a /vcoloron...

Code for /vcoloron:

PHP код:
CMD:vcoloron(playeridparams[])
{
    for(new 
0MAX_PLAYERS++)
    {
    if(
gPlayerInfo[playerid][PLAYER_VIP] < 1)return SendClientMessage(playeridCOLOR_RED"You are Not Allowed To Use This Command!");
    if(
gPlayerInfo[i][PLAYER_VIP] == 1)return SetPlayerColor(playeridCOLOR_BRONZE);
    if(
gPlayerInfo[i][PLAYER_VIP] == 2)return SetPlayerColor(playeridCOLOR_SILVER);
    if(
gPlayerInfo[i][PLAYER_VIP] == 3)return SetPlayerColor(playeridCOLOR_GOLD);
    
SendClientMessage(playeridCOLOR_LIGHTBLUE"[VIP]: You Have Enabled a Vip Color!");
    }
      return 
1;

Thanks for your help
Reply


Messages In This Thread
Help: vip command! - by Areax - 16.04.2013, 15:02
Re: Help: vip command! - by HurtLocker - 16.04.2013, 15:06
Re: Help: vip command! - by Areax - 16.04.2013, 15:09
Re: Help: vip command! - by HurtLocker - 16.04.2013, 15:19
Re: Help: vip command! - by Areax - 16.04.2013, 15:25
Re: Help: vip command! - by HurtLocker - 16.04.2013, 15:36
Re: Help: vip command! - by Areax - 16.04.2013, 16:12
Re: Help: vip command! - by HurtLocker - 16.04.2013, 16:14
Re: Help: vip command! - by robdint - 16.04.2013, 16:24

Forum Jump:


Users browsing this thread: 1 Guest(s)