admins CMD - 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: admins CMD (
/showthread.php?tid=253145)
admins CMD -
Venice - 04.05.2011
irc admins cmd aren't work good. im do it show id 0 player please fix this
pawn Код:
IRCCMD:admins(botid, channel[], user[], host[], params[])
{
new count,lolz1[200];
for (new giveid; giveid != GetMaxPlayers(); giveid ++)
for(new i=0; i<=MAX_PLAYERS; i++)
{
if (!IsPlayerConnected(giveid)) continue;
if (adminlevel[i] >= 1)
{
if(count == 0) IRC_GroupSay(IRC_Group, EchoChan,"3*** Admin's Online:1");
GetPlayerName(giveid,lolz1,32);
format(lolz1,200,"[%d] %s",giveid,lolz1);
IRC_GroupSay(IRC_Group, EchoChan, lolz1);
count++;
}
}
if (count == 0) return IRC_GroupSay(IRC_Group, EchoChan,"4*** Unfortiantly there are no admins's online");
return true;
}
Re: admins CMD -
Luis- - 04.05.2011
pawn Код:
IRCCMD:admins(botid, channel[], user[], host[], params[])
{
new count,lolz1[200];
for (new giveid; giveid != GetMaxPlayers(); giveid ++)
for(new i=0; i<=MAX_PLAYERS; i++)
{
if (!IsPlayerConnected(giveid)) continue;
if (adminlevel[i] >= 1)
{
if(count == 0) IRC_GroupSay(IRC_Group, EchoChan,"3*** Admin's Online:1");
GetPlayerName(giveid,lolz1,32);
format(lolz1,200,"[%d] %s",i,lolz1);
IRC_GroupSay(IRC_Group, EchoChan, lolz1);
count++;
}
}
if (count == 0) return IRC_GroupSay(IRC_Group, EchoChan,"4*** Unfortiantly there are no admins's online");
return true;
}
Should work.
Re: admins CMD -
Venice - 04.05.2011
id right name wrong
Re: admins CMD -
Luis- - 04.05.2011
pawn Код:
IRCCMD:admins(botid, channel[], user[], host[], params[])
{
new count,lolz1[200];
for (new giveid; giveid != GetMaxPlayers(); giveid ++)
for(new i=0; i<=MAX_PLAYERS; i++)
{
if (!IsPlayerConnected(giveid)) continue;
if (adminlevel[i] >= 1)
{
if(count == 0) IRC_GroupSay(IRC_Group, EchoChan,"3*** Admin's Online:1");
GetPlayerName(i,lolz1,32);
format(lolz1,200,"[%d] %s",i,lolz1);
IRC_GroupSay(IRC_Group, EchoChan, lolz1);
count++;
}
}
if (count == 0) return IRC_GroupSay(IRC_Group, EchoChan,"4*** Unfortiantly there are no admins's online");
return true;
}
Re: admins CMD -
Venice - 04.05.2011
work good thanks
Re: admins CMD -
Luis- - 04.05.2011
Not a problem
.
Re: admins CMD -
Venice - 04.05.2011
And I make /irc cmd for ingame but this isn't work can you give me that code please