Medic class
#1

Ok guys add the title says medic class
i am making a medic class but i dont know the Special command to heal players
im making this for teams so that the player can heal his own team members for 1 score also i need a 60 s timer

Reply
#2

ZZZ
so will i have to do medic thing for all the teams like
If(pTeam(playerid) = TEAM_USA)
and ill have to create this 6 times ?
Reply
#3

Bump
Reply
#4

I want to make medic class heal his team
how do i do this so please mention it
Bump
Reply
#5

Asking someone to guide me to make a medic heal command so medic class can heal team members
zzzzzzzZZZZZzzzzZzZZ
Reply
#6

#define CLASS_MEDIC 1

new pClass[MAX_PLAYERS];

//inside /heal
if( pClass[playerid]==CLASS_MEDIC)
{
// keep doing other stuff here
Reply
#7

i want to make team heal not player heal i get that
Reply
#8

EDIT: nvm
Reply
#9

Heal all medics:

pawn Код:
CMD:heal(playerid, params[])
{
       foreach(new i: Player);
       {
              if(pClass[i]  == CLASS_MEDIC)
              {
                     SetPlayerHealth(i, 100);
              }
       }
}

ZCMD and Foreach required.
Reply
#10

can you explain the function of foreach
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)