Please help - 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)
+--- Thread: Please help (
/showthread.php?tid=362228)
Please help -
TaLhA XIV - 23.07.2012
Hello!
Can someone tell me how to make teams and some commands specific for them just a small team and one command.Help would be appreciated.
Re: Please help -
TaLhA XIV - 23.07.2012
Anyone?okay just give me a link that can helpme out please?
Re: Please help -
Rudy_ - 23.07.2012
If you want to make class i suggest you
READING Thishere's just an example for Cmds only for specific Teams.
OnPlayerCommandText
e.g the cmd is
pawn Код:
if(strcmp("/kill",cmdtext,5) == 0)
{
if(gTeam[playerid] = TEAM_NAME;
{
SendClientMessage(playerid,-1, "Message");
}
else
{
SendClientMessage(playerid,-1,"This cmd is for TEAM_NAME only");
}
return 1;
}
Re: Please help -
TaLhA XIV - 24.07.2012
Hey do we have to define gTeam and the Team_Name.
I made a cmd out of this but it is giving me errors!Please help.
The errors are the expected token ; but found ] and undefined symbol gTeam