How i make a command just for specified class?
#1

For example, i made /heal [ID] command,And i want only medics can do it, how?
Reply
#2

try make it for a medic skin only with getplayerskin(playerid,skinid);
Reply
#3

Код:
If(GetPlayerSkin(playerid) == YOUR MEDIC ID )
{
    //scipt
}
or
Код:
Blablabla // /heal id balbla
{
   if(!GetPlayerSkin(playerid) == Skin ID|)
   {
       SendClientMessage
       return 1;
   }
    // script continue
   return 1;
}
Reply
#4

if(gTeam[playerid] == Medic) // just an example
{
//ur code
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)