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(playeridparams[])
{
  
SetPlayerHealth(playerid0);
  return 
1;

PHP код:
CMD:heal(playeridparams[])
{
  
SetPlayerHealth(playerid100.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(playerid0); 
  return 
1
}  
if(!
strcmp("/heal"cmdtext))

  
SetPlayerHealth(playerid100.0); 
  return 
1

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)