Need a simple guidance..
#1

Please could somebody show me how to create
a simple ZCMD command where you type the command such as
/weaponset, and if your in range of ..... and you got $4,000 on hand it succeeds and
hands you a MP5, shotgun, and kelvar.

Just need a guideline on how to do it :P

Thanks

~~James~~
Reply
#2

Here is a snippit for this, I created it. Configure to your symbols.
pawn Код:
CMD:weaponset(playerid)
{
     if PlayerIsInRangeOfPoint(X, Y, Z);
     if PlayerCash >= 3999 );
     {
          GivePlayerWeapon == 25);
          GivePlayerWeapon == 29);
          SetPlayerArmor == 100);
          SendClientMessageEx(playerid, COLOR_WHITE,"You have received Full Armor, a Shotgun, and a MP5.");
     }
     else
     {
          SendClientMessageEx(playerid, COLOR_WHITE,"You are not close enough and/or you do not have 4,000 cash.");
     }
     return 1;
}
If I helped add one to my rep.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)