SA-MP Forums Archive
/heal team medic command? Please 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /heal team medic command? Please help! (/showthread.php?tid=107087)



/heal team medic command? Please help! - DeltaAirlines12 - 07.11.2009

Ok, I have a ww3 tdm server and want team medic as a team.
Can someone make a /heal command that medic can use ONLY?
to make it so only medics can use it, use this:

Код:
			if(GetPlayerSkin(playerid) == 165)
so only medic skin can use it. Thanks.


Re: /heal team medic command? Please help! - DeltaAirlines12 - 08.11.2009

Someone Please reply!


Re: /heal team medic command? Please help! - Blaze09 - 08.11.2009

This should go under the command text:

Код:
if(GetPlayerSkin(playerid) != 165)
{
   SendClientMessage(playerid, //color here, "You Are Not A Paramedic!");
   return 1;
}
else 
{
   SetPlayerHealth(id, 100.0);
   SendClientMessage(id, //color here, "You have been healed by a paramedic");
}
}
return 1;
}
But, you may want to script a function to get the Return user.


Re: /heal team medic command? Please help! - retart441 - 08.11.2009

Quote:
Originally Posted by Blaze09
This should go under the command text:

Код:
if(GetPlayerSkin(playerid) != 165)
{
   SendClientMessage(playerid, //color here, "You Are Not A Paramedic!");
   return 1;
}
else 
{
   SetPlayerHealth(id, 100.0);
   SendClientMessage(playerid, //color here, "You have been healed by a paramedic");
}
}
return 1;
}
But, you may want to script a function to get the Return user.
Wouldnt that tell the person that did /heal that they were healed?


Re: /heal team medic command? Please help! - Blaze09 - 08.11.2009

Quote:
Originally Posted by retart441
Quote:
Originally Posted by Blaze09
This should go under the command text:

Код:
if(GetPlayerSkin(playerid) != 165)
{
  SendClientMessage(playerid, //color here, "You Are Not A Paramedic!");
  return 1;
}
else 
{
  SetPlayerHealth(id, 100.0);
  SendClientMessage(playerid, //color here, "You have been healed by a paramedic");
}
}
return 1;
}
But, you may want to script a function to get the Return user.
Wouldnt that tell the person that did /heal that they were healed?
Whoops, edited post.


Re: /heal team medic command? Please help! - Woet - 08.11.2009

'You can bump topics when the last reply is at least 12 hours old.'