SA-MP Forums Archive
[Include] [INC] Some simple natives. - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] Some simple natives. (/showthread.php?tid=122350)



[INC] Some simple natives. - Hiddos - 21.01.2010

Heya guys.

I was a bit bored and saw SA-MP still misses a lot of functions, so I made a few simple ones, which can be very useful at times (Easy enough to make, but useful for lazy people ).

This include contains the following functions:

Код:
GivePlayerDrunkLevel(playerid,level);
SetPlayerMoney(playerid,money);
GivePlayerHealth(playerid,health);
GivePlayerArmour(playerid,armour);
GivePlayerScore(playerid,score);
GivePlayerWantedLevel(playerid,level);

Download:


Solidfiles:



Pastebin: (I suggest using that)

http://pastebin.com/f497ee6a4

Installation:

Put the HidNat.inc (or however you'd like to call it) in your /pawno/includes folder (the includes folder).
Then go in your script, and put this at your includes:
#include <HidNat> (or whatever you called the file)


Enjoy!

Please report any bugs in this thread.


Re: [INC] Some simple natives. - laserhel50 - 21.01.2010

Nice, are you planning on making more?


Re: [INC] Some simple natives. - Faraday - 21.01.2010

Simple but useful. Good work.


Re: [INC] Some simple natives. - svorpyx - 21.01.2010

Good work, keep it up!


Re: [INC] Some simple natives. - Hiddos - 21.01.2010

Quote:
Originally Posted by laserhel50
Nice, are you planning on making more?
If I can think of more, probably yes.

Any suggestions are welcome, however I'm also planning on making a (filter) script in which you can type natives in-game (for example, you can type /SetPlayerScore or /GetPlayerPos and the outcome will be the same as you should get from Pawno, however this shows everything so you can easily /SetPlayerPos to whatever you'd like.)


Re: [INC] Some simple natives. - RyDeR` - 21.01.2010

You should use stock or a normal function. But nice done


Re: [INC] Some simple natives. - RenisiL - 21.01.2010

Not bad done


Re: [INC] Some simple natives. - Doppeyy - 21.01.2010

Indeed not bad at all.
Keep up the good work.

[Doppeyy


Re: [INC] Some simple natives. - ViruZZzZ_ChiLLL - 23.01.2010

Yeah, looks good
________
HISTORY OF FORD MOTOR COMPANY HISTORY


Re: [INC] Some simple natives. - laserhel50 - 24.01.2010

a suggestion:
GetPlayerSkillLevel
GetPlayerHealth ((More simple than the float shit))
GetPlayerArmor ((More simple than the float shit))