Question.. - 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)
+--- Thread: Question.. (
/showthread.php?tid=567773)
Question.. -
dundolina - 16.03.2015
How to make one thing for command? When you have 80 and more hp or armor you can use this command, when you have less you cant use this command.
Re: Question.. -
CalvinC - 16.03.2015
Using GetPlayerHealth, it's very simple:
pawn Код:
new Float:HP; // Declares a float, named "HP"
GetPlayerHealth(playerid, HP); // Stores the players health in the float
if(HP < 80) return SendClientMessage(playerid, -1, "You cannot use this command");
// If the float value was lower than 80, send a message and stop the code
Re: Question.. -
dundolina - 16.03.2015
How to create it and for armor?