Can You Improve This Code?
#1

I am Wanting To Know If Anyone Can Improve This Code or can tell me if its a good code.
(this does not include changing if(strcmp(cmdtext,"/vcmds",true) == 0))
Code:
pawn Код:
if(strcmp(cmdtext,"/vcmds",true) == 0)
    {
       if(IsPlayerVipType(playerid,1)) {
            SendClientMessage(playerid,red,"[_____________San Andreas MultiPlayGround VIP Player Commands_____________]");
            SendClientMessage(playerid,green,"Silver: /afk, /back, /f - Flips You Car");
            if(IsPlayerVipType(playerid,2)) {
                SendClientMessage(playerid,green,"Gold: /heal, /armor, /vr - Repairs Your Vehicle");
                if(IsPlayerVipType(playerid,3)) {
                    SendClientMessage(playerid,green,"Preimum: /vpgod,");
                }
            }
        }
        else SendClientMessage(playerid,red,"Only Vip's Can Use This Command");
        return 1;
    }
Reply


Messages In This Thread
Can You Improve This Code? - by mastalol - 20.07.2011, 20:23
Re: Can You Improve This Code? - by Grim_ - 20.07.2011, 20:27
Re: Can You Improve This Code? - by System64 - 20.07.2011, 20:33
Re: Can You Improve This Code? - by mastalol - 20.07.2011, 20:51
Re: Can You Improve This Code? - by Grim_ - 20.07.2011, 20:56
Re: Can You Improve This Code? - by Rafa - 20.07.2011, 21:14
Re: Can You Improve This Code? - by mastalol - 20.07.2011, 21:22
Re: Can You Improve This Code? - by Rafa - 20.07.2011, 21:43
Re: Can You Improve This Code? - by Daren_Jacobson - 20.07.2011, 21:50
Re: Can You Improve This Code? - by mastalol - 20.07.2011, 22:04

Forum Jump:


Users browsing this thread: 2 Guest(s)