[Include] [INC] Some simple natives.
#1

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.
Reply
#2

Nice, are you planning on making more?
Reply
#3

Simple but useful. Good work.
Reply
#4

Good work, keep it up!
Reply
#5

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.)
Reply
#6

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

Not bad done
Reply
#8

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

[Doppeyy
Reply
#9

Yeah, looks good
________
HISTORY OF FORD MOTOR COMPANY HISTORY
Reply
#10

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


Forum Jump:


Users browsing this thread: 4 Guest(s)