[Include] [INC] TearGas System
#1

Some of you have seen me on the forums so far, i'm pretty much new to scripting, I'm a c++ coder and a PHP coder, so PAWN is easier for me atm.

I noticed people were releasing scripts here, and I thought, why not make something that isn't in SA-MP, like the teargas feature, so I simply, went into Pawno, and did my thing.

There are some functions I must explain, you can use them to activate the teargas.

Code:
native TearGas_OnPlayerConnect(playerid); - Use this to reset a players teargas.
native GivePlayerTearGas(playerid, amount); - Gives the player a certain amount of teargas.
native SetPlayerTearGas(playerid, amount); - Sets the player's teargas amount.
native GetPlayerTearGas(playerid); - Gets a players teargas amount.
Installing is very easy, open up your scripting editor, and add
Code:
#include <TearGas.inc>
this will enable you to use the functions, add this under a_samp

I've taken some pictures of the teargas effects etc..




Download available here:
http://pastebin.com/XcDCyK2K

Installation Guide
1: Put #include <TearGas.inc> in your script.
2: Put TearGas_OnPlayerConnect(playerid); in OnPlayerConnect.
3: Put TearGasOnPlayerKeyStateChange(playerid, newkeys); in OnPlayerKeyStateChange
4: If you're not going to use a function at the moment or never put, #pragma unused The Function Name. A example of that is: #pragma unused SetPlayerTearGas

Oh and, I couldn't find the cough animation, I tried my best to do what I can do.
This is my first release, I hope I did good
Reply


Messages In This Thread
[INC] TearGas System - by Carlton - 07.03.2010, 21:02
Re: [INC] TearGas System - by speedruntrainer - 07.03.2010, 21:04
Re: [INC] TearGas System - by Carlton - 07.03.2010, 21:06
Re: [INC] TearGas System - by Calgon - 07.03.2010, 21:10
Re: [INC] TearGas System - by Carlton - 07.03.2010, 21:18
Re: [INC] TearGas System - by Calgon - 07.03.2010, 21:19
Re: [INC] TearGas System - by Carlton - 07.03.2010, 21:21
Re: [INC] TearGas System - by MenaceX^ - 07.03.2010, 21:25
Re: [INC] TearGas System - by Carlton - 07.03.2010, 21:28
Re: [INC] TearGas System - by MenaceX^ - 07.03.2010, 21:46
Re: [INC] TearGas System - by Lejo - 08.03.2010, 07:50
Re: [INC] TearGas System - by Carlton - 08.03.2010, 10:39
Re: [INC] TearGas System - by Oxside - 08.03.2010, 11:10
Re: [INC] TearGas System - by [MWR]Blood - 08.03.2010, 11:14
Re: [INC] TearGas System - by Scenario - 08.03.2010, 15:29
Re: [INC] TearGas System - by Carlton - 08.03.2010, 19:31
Re: [INC] TearGas System - by Carlton - 10.03.2010, 20:23
Re: [INC] TearGas System - by tackleza - 10.03.2010, 23:24
Re: [INC] TearGas System - by swat853 - 18.03.2010, 22:47
Re: [INC] TearGas System - by sushihusi - 19.03.2010, 09:39
Re: [INC] TearGas System - by Carlton - 19.03.2010, 10:44
Re: [INC] TearGas System - by Joe_ - 19.03.2010, 13:02
Re: [INC] TearGas System - by Brian_Furios - 19.03.2010, 13:16
Re: [INC] TearGas System - by Carlton - 19.03.2010, 19:44
Re: [INC] TearGas System - by matko.basket - 21.03.2010, 12:31
Re: [INC] TearGas System - by Carlton - 21.03.2010, 12:33
Re: [INC] TearGas System - by matko.basket - 21.03.2010, 12:37
Re: [INC] TearGas System - by Carlton - 21.03.2010, 12:39
Re: [INC] TearGas System - by matko.basket - 21.03.2010, 12:46
Re: [INC] TearGas System - by Carlton - 21.03.2010, 12:56
Re: [INC] TearGas System - by esaone - 11.05.2010, 16:51
Re: [INC] TearGas System - by Carlton - 11.05.2010, 19:31

Forum Jump:


Users browsing this thread: 8 Guest(s)