Medic Command!!!
#1

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

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

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

Can SomeOne HelpMe!!!
Reply
#5

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.
Reply
#6

How i dont now how!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)