[FilterScript] SimpLe HeaL sYsTeM - 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)
+--- Thread: [FilterScript] SimpLe HeaL sYsTeM (
/showthread.php?tid=372154)
SimpLe HeaL sYsTeM -
DeadLy™ - 25.08.2012
SimpLe HeaL sYsTeM
Introduction
This is a simple heal armour+health if player has $5000.
Usage: /ahheal
Requirements
Zcmd include [cmd processor]
Код:
CMD:ahheal(playerid,params[])
{
#pragma unused params
if(GetPlayerMoney(playerid)<5000)
return SendClientMessage(playerid,0xFF0000,"You need to have $5000 to use this cmd.");
SetPlayerHealth(playerid,100.00);
SetPlayerArmour(playerid,100.00);
SendClientMessage(playerid,0xFF0000,"Health+Armour recharged.");
return 1;
}
Bugs
No Bugs. Found Yet, If you find One Please Post Here.
Credits:
Special Thank To [xB]Lordz For Suggestion.
================================================== ==
[Filterscript] By Talkro, Rep! Me iF you Like my Work.
================================================== ==
Re: SimpLe HeaL sYsTeM -
Neromon - 25.08.2012
Sound nice i will try it
Re: SimpLe HeaL sYsTeM -
Dan. - 25.08.2012
It should be posted to 'Useful Snippets' because putting 1 command into 1 filterscript is not efficient. But good job anyways.
Re: SimpLe HeaL sYsTeM -
Lordzy - 25.08.2012
Think this is your first work,nice job.
But this should be posted in Useful Snippets.
Re: SimpLe HeaL sYsTeM -
DeadLy™ - 26.08.2012
Thx Guys! Rep will be appericiated.
Re: SimpLe HeaL sYsTeM -
[BK]TrollKing - 28.08.2012
Aslike the others said put it on the Useful snippets btw NICE!
Re: SimpLe HeaL sYsTeM -
Shetch - 28.08.2012
Quote:
Originally Posted by talkro
Thx Guys! Rep will be appericiated. 
|
Reputation begging for THIS?
Seriously now, a beginner can make this...
Re: SimpLe HeaL sYsTeM -
Lordzy - 17.09.2012
Found a mistake in your command.
You said if player has $5000, then only player can use that command.
But here, less than $5000 can use this command.
pawn Код:
if(GetPlayerMoney(playerid)<5000) //Here It's getting players money less than $5000.
It must be
pawn Код:
if(GetPlayerMoney(playerid)>=5000) //Greater than or equal to $5000.
Re: SimpLe HeaL sYsTeM -
Gioslami - 17.09.2012
Simple but productive.
Re: SimpLe HeaL sYsTeM -
TheArcher - 19.09.2012
Quote:
Originally Posted by [xB]Lordz
Found a mistake in your command.
You said if player has $5000, then only player can use that command.
But here, less than $5000 can use this command.
pawn Код:
if(GetPlayerMoney(playerid)<5000) //Here It's getting players money less than $5000.
It must be
pawn Код:
if(GetPlayerMoney(playerid)>=5000) //Greater than or equal to $5000.
|
No LOL. If the money is < 5000 it returns the client message and the code stoppes. Beside that WTF, Is this a FS? Most of people can do this by themself however, just need a simply integer number on health like 100 not 100.00 makes non sense.
Edit: You said if we find bugs on 5 lines? You serious?