Need help - 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: Need help (
/showthread.php?tid=631432)
Need help -
Advait - 29.03.2017
Guys can some create script for simple commands such as /heal for making hp 100
/Kill for suicide and I also need script by which we can spawn vehicle we need anytime
Re: Need help -
ommar8080 - 29.03.2017
PHP код:
#include <a_samp>
#include <zcmd>
PHP код:
CMD:kill(playerid, params[])
{
SetPlayerHealth(playerid, 0);
return 1;
}
PHP код:
CMD:heal(playerid, params[])
{
SetPlayerHealth(playerid, 100.0);
return 1;
}
here u go
Re: Need help -
coool - 29.03.2017
You forgot the CMD:heal.
Re: Need help -
Advait - 29.03.2017
Is this pawno script??
Re: Need help -
coool - 29.03.2017
Yes it is and we are using zcmd there if you want to make it the ordinary way then here it is:
PHP код:
if(!strcmp("/kill", cmdtext))
{
SetPlayerHealth(playerid, 0);
return 1;
}
if(!strcmp("/heal", cmdtext))
{
SetPlayerHealth(playerid, 100.0);
return 1;
}