Skripta koju koristim: Gt:RP (edit Public RP-a)
Detaljan opis problema: Nemogu da dodam nikome admina sebi sam jedino uspio preko ftp ali komanda /makeadmin neradi a imam je u GM.
Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Citatif(strcmp(cmd, "/makeadmin", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 100000)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /makeadmin [playerid/PartOfName] [level]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strvalEx(tmp);
if(IsPlayerConnected(para1))
{
if(PlayerInfo[para1][pAdmin] > PlayerInfo[playerid][pAdmin] && level == 0)
{
format(string, sizeof(string), "AdmCmd: %s was kicked, reason: Attempting to set a higher admin's rights lower.", PlayerName(playerid));
ABroadCast(COLOR_LIGHTRED, string, 1);
Kick(playerid);
return 1;
}
if(para1 != INVALID_PLAYER_ID)
{
if(PlayerInfo[para1][pAdmin] > level)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pAdmin] = level;
format(string, sizeof(string), " You have been DEMOTED to a %s by %s", GetALevelName(level), RemoveUnderScore(playerid));
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), " You have promoted %s to a %s.", giveplayer,GetALevelName(level));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
else
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pAdmin] = level;
format(string, sizeof(string), " You have been PROMOTED to a %s by %s", GetALevelName(level), RemoveUnderScore(playerid));
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), " You have promoted %s to a %s.", giveplayer,GetALevelName(level));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
}
}
}
return 1;
Koji ti je najveci admin 1338 il ???
if(PlayerInfo[playerid][pAdmin] >= 100000)
lol admina lvl-a
Citatif(PlayerInfo[playerid][pAdmin] == 0){ atext = ""; }
if(PlayerInfo[playerid][pAdmin] == 1){ atext = ""; }
if(PlayerInfo[playerid][pAdmin] == 2){ atext = "Junior Admin"; }
if(PlayerInfo[playerid][pAdmin] == 3){ atext = "General Admin"; }
if(PlayerInfo[playerid][pAdmin] == 4){ atext = "Senior Admin"; }
if(PlayerInfo[playerid][pAdmin] == 1337){ atext = "Head Admin"; }
if(PlayerInfo[playerid][pAdmin] == 99999){ atext = "Server Manager"; }
if(PlayerInfo[playerid][pAdmin] == 100000){ atext = "Community Owner"; }
Valja je ovo :S
Citat: 2pac^ poslato Mart 27, 2011, 14:20:33 POSLE PODNE
if(PlayerInfo[playerid][pAdmin] >= 100000)
lol admina lvl-a
Pa bas zbog toga sam ga i pitao mislio sam da taj admin nepostoji.
napravio sam hvala u svakom slucaju ,,, jesam noob morao sam samo sebi dati ovaj lvl 100000 umjesto 1338 omg -.- :D