SA-MP Forums Archive
Medic Command!!! - 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: Medic Command!!! (/showthread.php?tid=267272)



Medic Command!!! - IvancheBG - 07.07.2011

Hi Again I Want To Ask How To Make The Class Medic To Have A Command When He Type /heal [playerid] To Heal The Player And To Take 7000 Money From The Player And The Player Will Be Healed!!!How To Do That


Re: Medic Command!!! - [HiC]TheKiller - 07.07.2011

Use ZCMD / DCMD with

https://sampwiki.blast.hk/wiki/SetPlayerHealth
https://sampwiki.blast.hk/wiki/GivePlayerMoney

Example of a heal command for DCMD. Just add
pawn Код:
GivePlayerMoney(playerid, -7000);



Re: Medic Command!!! - IvancheBG - 07.07.2011

Thanks But How To Make It Without Zcmd And Dcmd And How To Make It Only Class Medic To Do That!!!


Re: Medic Command!!! - IvancheBG - 07.07.2011

Can SomeOne HelpMe!!!


Re: Medic Command!!! - Hipflop - 07.07.2011

Make a loop through all players that are connected.
Make a check if they are medic or not.
If they are they can use it, if not they get a message with "you are not a medic" or something like that.


Re: Medic Command!!! - IvancheBG - 07.07.2011

How i dont now how!!!