[Help] Weapon Commands
#1

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
Reply
#2

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

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

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

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;
}
Reply
#5

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!
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)