How i make a command just for specified class? - 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: How i make a command just for specified class? (
/showthread.php?tid=135413)
How i make a command just for specified class? -
MorrocoRP - 20.03.2010
For example, i made /heal [ID] command,And i want only medics can do it, how?
Re: How i make a command just for specified class? -
boelie - 20.03.2010
try make it for a medic skin only with getplayerskin(playerid,skinid);
Re: How i make a command just for specified class? -
GaGlets(R) - 20.03.2010
Код:
If(GetPlayerSkin(playerid) == YOUR MEDIC ID )
{
//scipt
}
or
Код:
Blablabla // /heal id balbla
{
if(!GetPlayerSkin(playerid) == Skin ID|)
{
SendClientMessage
return 1;
}
// script continue
return 1;
}
Re: How i make a command just for specified class? -
aircombat - 20.03.2010
if(gTeam[playerid] == Medic) // just an example
{
//ur code
return 1;
}