15.02.2012, 20:45
Hello guys. I'm beginner and I'll be very happy if you help me, with the following questions...
1)
Here is the /admin script:
As you see there is [ID: ]. I would like to show the ID of every admin online next to his name, but I'm wrong somewhere in the script and it is showing the playersid. Here is example
_____________________________________________
ADMINS ONLINE:
[ONLINE:] Lead Administrator: Terell Banks [ID:32]
[ONLINE:] Senior Administrator: Will_Smith [ID:15]
...
I do not want to be red ingame, just showing you what I mean
.
2) I would like to ask, if I can upload my server into FTP/Web Host so it can be 24/7 Online. Is that possible or ...
Thank you all in advance.
Best Regards.
1)
Here is the /admin script:
Код HTML:
if (strcmp(cmd, "/admins", true) == 0) // By CuervO_NegrO { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, COLOR_GRAD1, "_____________________________________________"); SendClientMessage(playerid, COLOR_GRAD1, " ADMINS ONLINE: "); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 1338 || PlayerInfo[i][pTester] >= 1) { new admtext[64]; if(PlayerInfo[i][pAppearList] == 1) { if(PlayerInfo[i][pAdmin] == 1338) { admtext = "[ONLINE:] Lead Administrator:"; } else if(PlayerInfo[i][pAdmin] == 1337) { admtext = "[ONLINE:] Lead Administrator"; } else if(PlayerInfo[i][pAdmin] == 6) { admtext = "[ONLINE:] Lead Administrator"; } else if(PlayerInfo[i][pAdmin] == 5) { admtext = "[ONLINE:] Lead Administrator"; } else if(PlayerInfo[i][pAdmin] == 4) { admtext = "[ONLINE:] Senior Administrator"; } else if(PlayerInfo[i][pAdmin] == 3) { admtext = "[ONLINE:] Level 3 Administrator"; } else if(PlayerInfo[i][pAdmin] == 2) { admtext = "[ONLINE:] Level 2 Administrator"; } else if(PlayerInfo[i][pAdmin] == 1) { admtext = "[ONLINE:] Level 1 Moderator"; } else if(PlayerInfo[i][pTester] == 3) { admtext = "[ONLINE:] Lead Helper"; } else if(PlayerInfo[i][pTester] == 2) { admtext = "[ONLINE:] Senior Helper"; } else if(PlayerInfo[i][pTester] == 1) { admtext = "[ONLINE:] Helper"; } else { admtext = "Unknown Rank"; } } GetPlayerName(i, sendername, sizeof(sendername)); if(PlayerInfo[i][pAdminDuty] == 0 && PlayerInfo[i][pAppearList] == 1) { format(string, sizeof(string), "%s: %s [ID: %d]", admtext, sendername, playerid); SendClientMessage(playerid, COLOR_GRAD1, string); } else if(PlayerInfo[i][pAdminDuty] == 1 && PlayerInfo[i][pAppearList] == 1) { format(string, sizeof(string), "%s - %s (On Duty)", admtext, sendername); SendClientMessage(playerid, TEAM_VAGOS_COLOR, string); } } } } } return 1; }
_____________________________________________
ADMINS ONLINE:
[ONLINE:] Lead Administrator: Terell Banks [ID:32]
[ONLINE:] Senior Administrator: Will_Smith [ID:15]
...
I do not want to be red ingame, just showing you what I mean
![Smiley](images/smilies/smile.png)
2) I would like to ask, if I can upload my server into FTP/Web Host so it can be 24/7 Online. Is that possible or ...
Thank you all in advance.
Best Regards.