fixed. - 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: fixed. (
/showthread.php?tid=200254)
fixed. -
Face9000 - 17.12.2010
fixed.
Re: fixed. -
Ironboy500[TW] - 17.12.2010
If you are thinking of skins, add this to top of script
Код:
#define PILOT PilotSkinIDHere
and this code under your dcmd_p
Код:
if(GetPlayerSkin(playerid) != PILOT) return SendClientMessage(playerid, RED, "Error: You must be pilot to talk in pilot chat.");
if you were thinking of teams, this to top of script
Код:
#define TEAM_PILOT 1
and this to dcmd_p
Код:
if(GetPlayerTeam(playerid) != TEAM_PILOT) return SendClientMessage(playerid, RED, "Error: You must be pilot to talk in pilot chat.");