SA-MP Forums Archive
[Help] Weapon Commands - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help] Weapon Commands (/showthread.php?tid=473262)



[Help] Weapon Commands - 0Z3ro0 - 02.11.2013

Hello everyone, thanks to my helpers earlier I finally have working commands! But now I am running into another issue. I want to be able to enter /set1, /set2, /set3 and get those weapon sets. So I set my code up like this;

http://pastebin.com/j7iMRVfy

When I enter the commands in my server nothing happens. I do not get a unknown command error so I know that it is reading it. But no weapons are given to my player. He stays at the default spawned weapons. I thought at first that this was a issue of FS. So i removed the code from my commands FS and added it to the gamemode script. Still the same result, no error message saying unknown command, but nothing happens.

Again I am sure this is something silly that I have overlooked or am not understanding. Any and all help is greatly appreciated and I look forward to talking to you all very soon.

-
0Z3ro0


Re: [Help] Weapon Commands - RowdyrideR - 02.11.2013

Wrong column
Go to https://sampwiki.blast.hk/wiki/Weapons

and pick numbers from the " ID column " instead of " Object Model "


Re: [Help] Weapon Commands - Burning - 02.11.2013

https://sampwiki.blast.hk/wiki/Weapons
You made some failures at weapons id, there's no weapon id under 46.


Re: [Help] Weapon Commands - RowdyrideR - 02.11.2013

I mean like this.
Код:
CMD:set1(playerid, params[])
{
	GivePlayerWeapon(playerid, 1, 1);
	GivePlayerWeapon(playerid, 3, 1);
	GivePlayerWeapon(playerid, 16, 10);
	GivePlayerWeapon(playerid, 22, 150);
	GivePlayerWeapon(playerid, 25, 125);
	GivePlayerWeapon(playerid, 28, 200);
	GivePlayerWeapon(playerid, 30, 200);
	GivePlayerWeapon(playerid, 33, 175);
	GivePlayerWeapon(playerid, 35, 25);
	return 1;
}
CMD:set2(playerid, params[])
{
	GivePlayerWeapon(playerid, 1, 1);
	GivePlayerWeapon(playerid, 4, 1);
        GivePlayerWeapon(playerid, 12, 1);
        GivePlayerWeapon(playerid, 16, 10);
        GivePlayerWeapon(playerid, 23, 150);
        GivePlayerWeapon(playerid, 26, 125);
        GivePlayerWeapon(playerid, 32, 200);
        GivePlayerWeapon(playerid, 31, 200);
        GivePlayerWeapon(playerid, 33, 175);
        GivePlayerWeapon(playerid, 37, 1500);
        return 1;
}



Re: [Help] Weapon Commands - 0Z3ro0 - 02.11.2013

Quote:
Originally Posted by RowdyrideR
Посмотреть сообщение
Wrong column
Go to https://sampwiki.blast.hk/wiki/Weapons

and pick numbers from the " ID column " instead of " Object Model "
I knew it was something I had overlooked. Thank you for your speedy reply and gracious help. SAMP Forums can use more members like you!


Re: [Help] Weapon Commands - LeeXian99 - 02.11.2013

Quote:
Originally Posted by 0Z3ro0
Посмотреть сообщение
I knew it was something I had overlooked. Thank you for your speedy reply and gracious help. SAMP Forums can use more members like you!
Next time better look at SA:MP Wiki before asking the forum