17.03.2012, 19:24
I am using sscanf & zcmd and when i do /admins and even if others are admin , my name is only displayed can any one give me the code plz?
COMMAND:admins(playerid, params[])
{
new count = 1, name[24], string[128];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && IsPlayerAdmin(i))
{
GetPlayerName(i, name, sizeof(name));
format(string, sizeof(string), "%s%s \n", string, name);
count ++;
}
}
if(count != 1)
{
ShowPlayerDialog(playerid, 123, DIALOG_STYLE_MSGBOX, "Online Admins", string, "OK", "");
}
else ShowPlayerDialog(playerid, 123, DIALOG_STYLE_MSGBOX, "[!] Online Admins", "No online admins", "OK", "");
}
pawn Code:
|
for me too but how can i make it so when i choose an admin. there pops up another window like pm. and when i press pm, there is a input dialog and if i enter a text, it sends the admin the pm
|