SA-MP Forums Archive
[HELP] Creating a new Ammunation - 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] Creating a new Ammunation (/showthread.php?tid=334516)



[HELP] Creating a new Ammunation - Incog_Nito - 15.04.2012

Hey I need to add a new Ammunation to my server.

I'm a total noob to this scripting shit so please bear with me.

This is probably easy to most of you but not for me.

By doing research, I found a piece of code that creates a new Ammunation... however, its not as easy as adding one line of code to my gamemode.

I've done further research but cannot move forward because I don't understand.

Код:
CreateAmmunation(-1980.4841,883.7144,45.2031,88.6781,0,1);
^^I know where to add that... but when I do, I get this: error 017: undefined symbol "CreateAmmunation"

What exactly do I do from here? Please be as detailed as possible.


Re: [HELP] Creating a new Ammunation - MP2 - 15.04.2012

You can't just make up functions and expect them to work, otherwise you would just do CreateServer(genre[], name[]); and your script would be 1 line long.

What exactly do you need? I presume you will need the object of the ammunation exterior, and a pickup/checkpoint at the door to enter the interior.


Re: [HELP] Creating a new Ammunation - blank. - 15.04.2012

Could you link us to where you found it?


Re: [HELP] Creating a new Ammunation - Incog_Nito - 15.04.2012

Quote:
Originally Posted by MP2
Посмотреть сообщение
You can't just make up functions and expect them to work, otherwise you would just do CreateServer(genre[], name[]); and your script would be 1 line long.

What exactly do you need? I presume you will need the object of the ammunation exterior, and a pickup/checkpoint at the door to enter the interior.
I didn't make it up. I found it on SA:MP wiki.

Yes I need to place an exterior at those coordinates with a pickup/checkpoint at the door.


Re: [HELP] Creating a new Ammunation - MP2 - 15.04.2012

Found what on the samp wiki? Link please.


Re: [HELP] Creating a new Ammunation - Incog_Nito - 15.04.2012

Quote:
Originally Posted by blank.
Посмотреть сообщение
Could you link us to where you found it?
Quote:
Originally Posted by MP2
Посмотреть сообщение
Found what on the samp wiki? Link please.
Sure...
https://sampwiki.blast.hk/wiki/YSI:Addin...es#Ammunations


Re: [HELP] Creating a new Ammunation - MP2 - 15.04.2012

I guess you need to download YSI then.


Re: [HELP] Creating a new Ammunation - Phyrunx - 15.04.2012

Quote:
Originally Posted by Incog_Nito
Посмотреть сообщение
I'm a total noob to this scripting shit so please bear with me.
How dare you Call Scripting SHIT Huh?


Re: [HELP] Creating a new Ammunation - Incog_Nito - 15.04.2012

Quote:
Originally Posted by MP2
Посмотреть сообщение
I guess you need to download YSI then.
Thats it? The YSI will have the function or whatever in it so that all I have to do is add the CreatAmmunation to my gamemode?

Quote:
Originally Posted by Phyrunx
Посмотреть сообщение
How dare you Call Scripting SHIT Huh?
Scripting stuff.

Better?


Re: [HELP] Creating a new Ammunation - Incog_Nito - 17.04.2012

Still need this.

Somebody plz help a newby out.