12.01.2013, 00:52
(
Последний раз редактировалось Fernado Samuel; 04.10.2013 в 18:00.
)
Removed
CMD:admins(playerid,params[])
{
#pragma unused params
new count = 0;
new string[896];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(PlayerInfo[i][Level] >= 4 && PlayerInfo[i][Hide] == 0)
{
if(PlayerInfo[i][Level] > 10)
{
AdmRank = "Admin 10";
}
if(IsPlayerAdmin(i))
{
AdmRank = "RCON Admin";
}
else
{
switch(PlayerInfo[i][Level])
{
case 4: {
AdmRank = "Moderator 4";
}
case 5: {
AdmRank = "Admin 5";
}
case 6: {
AdmRank = "Master Admin 6";
}
case 7: {
AdmRank = "Administrator 7";
}
case 8: {
AdmRank = "Admin 8";
}
case 9: {
AdmRank = "Admin 9 ";
}
case 10: {
AdmRank = "Admin 10";
}
}
}
switch(PlayerInfo[i][OnDuty])
{
case 0: AdmDuty = "Playing!";
case 1: AdmDuty = "On Duty!";
}
format(string, sizeof(string), "%sLevel: %d - %s (Id:%i) | %s | %s",string,PlayerInfo[i][Level], PlayerName2(i),i,AdmRank,AdmDuty);
count++;
}
}
}
if (count == 0)
SendClientmessage(playerid,-1,"No admins online in the list");
else
SendClientmessage(playerid,-1,string);
return 1;
}
CMD:vips(playerid,params[])
{
#pragma unused params
new count = 0;
new string[896];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(PlayerInfo[i][Level] >= 1 && PlayerInfo[i][Level] < 4 && PlayerInfo[i][Hide] == 0)
{
switch(PlayerInfo[i][Level])
{
case 1: {
AdmRank = "VIP 1";
}
case 2: {
AdmRank = "VIP 2";
}
case 3: {
AdmRank = "VIP 3";
}
}
switch(PlayerInfo[i][OnDuty])
{
case 0: AdmDuty = "Playing!";
case 1: AdmDuty = "On Duty!";
}
format(string, sizeof(string), "%sLevel: %d - %s (Id:%i) | %s | %s\n",string,PlayerInfo[i][Level], PlayerName2(i),i,AdmRank,AdmDuty);
count++;
}
}
}
if (count == 0)
SendClientmessage(playerid,-1,"No Vips online in the list");
else
SendClientmessage(playerid,-1,string);
return 1;
}
if(PlayerInfo[i][Level] >= 1