Would like to learn the syntax
I am more familiar with java's loops, statements, methods and stuff.
I've tried to code C before but I didn't catch on and I basically know as much about coding C now as I do then. I really don't know how to put into code as well as Java. What I'd like to know is: What would a basic 'shotgun giver' (for half-life) plugin look like? or something as simple as that. I don't know how to get the player calling the command or get the native language of the game that would give the shotgun. Also, how do you know how to call that command ingame. I've looked through some C before and I couldn't find what gave the code's name to be, for example, amx_giveshotgun or something like that. |
Re: Would like to learn the syntax
First of all, this is not C. Is pawn.
|
Re: Would like to learn the syntax
There is an abundant amount of information about scripting in Pawn (it is C-like syntax). The first lesson is to learn how to search.
So, take some time looking at the basics of scripting plugins. Then, try to make something simple based on something you've seen in a tutorial, documentation, or another plugin and make sure you can get that to work. Then, make things more complicated in the direction of your end goal. If you have a question about a specific topic, you can post your question here (with a descriptive topic title) after you have done a decent amount of searching for your issue. |
| All times are GMT -4. The time now is 05:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.