Need help
#1

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

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
Reply
#3

You forgot the CMD:heal.
Reply
#4

Is this pawno script??
Reply
#5

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; 
} 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)