GUI /admins
#1

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 ?
Reply
#2

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?
Reply
#3

Not working
Reply
#4

I dont think you can.
Reply
#5

Take this for example: http://forum.sa-mp.com/index.php?topic=154987.0
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)