how to make this ? - 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: how to make this ? (
/showthread.php?tid=325778)
how to make this ? -
TheBluec0de - 14.03.2012
Solved
Re: how to make this ? -
Krx17 - 14.03.2012
pawn Код:
ShowPlayerDialog(playerid, 0, 1, "Caption", "Text", "Okay", "");
Re: how to make this ? -
TheBluec0de - 14.03.2012
I know the dialog ...
Re: how to make this ? -
Georgi166 - 14.03.2012
Quote:
Originally Posted by Krx17
pawn Код:
ShowPlayerDialog(playerid, 0, 1, "Caption", "Text", "Okay", "");
|
Dude he wants to know how to make a command that shows the online admins -.-
Re: how to make this ? -
new121 - 14.03.2012
Try this but I have no idea if it will work or not.
pawn Код:
CMD:admins(playerid, params[])
{
for(new i; i<MAX_PLAYERS; i++); // loops through all the players
{
if(PlayerInfo[i][pAdmin] >= 1)
{
new name[24];// creating a variable for the players name
GetPlayerName(i, name, sizeof(name));// gets the players name and stores it to the variable name
format(string,sizeof(string), " %s\r\n ", name);
ShowPlayerDialog(playerid, 0, 1, "Admins Online", string, "Close", "");
}
}
return 1;
}
Re: how to make this ? -
TheBluec0de - 14.03.2012
I solved it by himself, thanks