[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))