[FilterScript] SimpLe HeaL sYsTeM
#1

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

Sound nice i will try it
Reply
#3

It should be posted to 'Useful Snippets' because putting 1 command into 1 filterscript is not efficient. But good job anyways.
Reply
#4

Think this is your first work,nice job.
But this should be posted in Useful Snippets.
Reply
#5

Thx Guys! Rep will be appericiated.
Reply
#6

Aslike the others said put it on the Useful snippets btw NICE!
Reply
#7

Quote:
Originally Posted by talkro
Посмотреть сообщение
Thx Guys! Rep will be appericiated.
Reputation begging for THIS?
Seriously now, a beginner can make this...
Reply
#8

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

Simple but productive.
Reply
#10

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)