GUI /admins - 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: GUI /admins (
/showthread.php?tid=130894)
GUI /admins -
wojasek - 28.02.2010
HI !
I have a command
Код:
if (strcmp(cmd, "/admins", true)==0) {
//new string2[256];
new adminsonline = 0;
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i) && IsPlayerAdminByLuby(i))adminsonline++;
}
if (adminsonline == 0){
SendClientMessage2(playerid, CINFO, "Brak Adminуw online. Aby wezwać Admina napisz na GG: 6485591.");
} else if (adminsonline == 1){
for (new i = 0; i < MAX_PLAYERS; i++)
if(HideAdmins[i] == 1)return SendClientMessage(playerid, CINFO, "Brak Adminуw online. Aby wezwać Admina napisz na GG: 6485591");
format(string2, sizeof(string2), "Zalogowany jest 1 Admin.");
SendClientMessage2(playerid, CINFO, string2);
} else if (adminsonline > 1){
format(string2, sizeof(string2), "Zalogowani Administratorzy:");
SendClientMessage2(playerid, CINFO, string2);
}
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (HideAdmins[i] == 0){
if (IsPlayerConnected(i) && IsPlayerAdminByLuby(i)) {
format(string2, sizeof(string2), "%s (ID: %d)", PlayerName(i), i);
SendClientMessage2(playerid, CNORMAL, string2);
}
}
}
return 1;
}
How to transform the GUI ?
Re: GUI /admins -
Niixie - 28.02.2010
i think you need to make it in format and then
ShowPlayerDialog(playerid, dialogid, dialogstyle, "Admins", string, "okay", "exit");
but i dont know if it would work?
Re: GUI /admins -
wojasek - 28.02.2010
Not working
Re: GUI /admins -
Niixie - 28.02.2010
I dont think you can.
Re: GUI /admins -
Sergei - 28.02.2010
Take this for example:
http://forum.sa-mp.com/index.php?topic=154987.0