/heal team medic command? Please help!
#1

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

Someone Please reply!
Reply
#3

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

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?
Reply
#5

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)