SA-MP Forums Archive
Admin 250 Health Script - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Admin 250 Health Script (/showthread.php?tid=112222)



Admin 250 Health Script - tommzy2 - 06.12.2009

We'll we have all played San Andreas before and everyone knows your health increases in that game, it increases to the Maximum of 250 Health and you can increas your armor up to 150 by doing 15 vigilante missions so im just asking if someone knows a pawn script that makes admins have 250 health and 150 armor then please share, i really need this for my server. i have been looking for this type of script and i cant find it./
i know gamer x server has the script that gives admins 250 health and 150 armor but i dont think they would share it with me, so thats why im asking so if anyone has this script PLEASE SHARE. i need this for my server


Re: Admin 250 Health Script - DeathOnaStick - 06.12.2009

pawn Код:
SetPlayerHealth(playerid, 250);
SetPlayerArmor(playerid, 150);
You want it like this?

#Edit#: :P


Re: Admin 250 Health Script - Jeffry - 06.12.2009

Well, you could just make:

pawn Код:
SetPlayerHealth(playerid, 250);
pawn Код:
SetPlayerArmour(playerid, 150);
The red line wouldnt increase, but you have 250hp.
How to make this longer, i donґt know.

Greetz

[edit] exitus was 45 secs faster. O.O


Re: Admin 250 Health Script - tommzy2 - 06.12.2009

will this work for only admins or all players cos i need one thats only for admins


Re: Admin 250 Health Script - tommzy2 - 06.12.2009

ohh and if so where should i insert this pawn code?


Re: Admin 250 Health Script - Jeffry - 06.12.2009

As a command. Or on OnPlayerConnect

You can make it on your own, or shall i make it?




Re: Admin 250 Health Script - DeathOnaStick - 06.12.2009

pawn Код:
if(strcmp(cmdtext, "/Adminhealth", true, sizeof(cmdtext))==0)
{
if(IsPlayerAdmin(playerid)
{
SetPlayerHealth(playerid, 250);
SetPlayerArmor(playerid, 150);
}
}
maybe smth like this.


Re: Admin 250 Health Script - tommzy2 - 06.12.2009

a commands would be cool but i wouldnt mind both , thanks guys you are a big help
would have took me years to do this on my own lol