Samp /creategun Command
#1

How can i create a Basic /creategun command? Where i can create m4,ak and stuff from Materials..
I also wanna know how to make a leveling up system so i can level up arms for new guns
Im using SSCANF and ZCMD
Reply
#2

pawn Код:
CMD:creategun(playerid, params[]){
      new target,weapid,ammo;
      if(sscanf(params,"dd",target,weapid,ammo)) return SendClientMessage(playerid,"usage : /creategun [playerid][weaponid][ammo]");
      GivePlayerWeapon(target,weapid,ammo);
      return 1;
}
thats the basic, you need to watch your anti weapon hack system to give valid weapon, just costumize your self..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)