/team command wont work - 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: /team command wont work (
/showthread.php?tid=349515)
/team command wont work -
Stefand - 09.06.2012
Hey,
my /team command won't work, it only shows the -------------------------------------
but not the members
pawn Код:
command(team, playerid, params[])
{
#pragma unused params
if(Player[playerid][Group] >= 1)
{
new string[128];
SendClientMessage(playerid, WHITE, "------------------------------------------------------------");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnectedEx(i) && Player[i][Group] == Player[playerid][Group] && Player[i][AdminDuty] < 1)
{
format(string, sizeof(string), "Name: %s | Rank: %d.", GetName(i), Player[i][GroupRank]);
SendClientMessage(playerid, WHITE, string);
}
}
SendClientMessage(playerid, WHITE, "------------------------------------------------------------");
}
return 1;
}
Re: /team command wont work -
[KHK]Khalid - 09.06.2012
It seems to work fine. Hmm were there any players in your server when you tested it? If so are you sure you were in the same team/group as them and you weren't onduty?
Re: /team command wont work -
Stefand - 09.06.2012
i was on admin duty, that was the problem xD
Thanks