03.08.2018, 00:09
Always when an admin joining the server and he admin level example level 2 and joining the server they giving him as level 0 message why?
PHP код:
if(DOF2_CheckLogin(file,inputtext)) // We check if the password match
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
SendClientMessage(playerid, -1, "Welcome back{FFFFFF}, you are a {00FFFF}An Admin Level 1{FFFFFF}Player. Language: {E33667}English{FFFFFF}.");
SendClientMessage(playerid, -1, "{A82FED}[To remember you]: {FFFFFF}If you want to check admins commands level 1 just type {A82FED}/level1{FFFFFF}.");
PlayerPlaySound(playerid,1058, 0.0, 0.0, 0.0); //Start Sound
PlayerInfo[playerid][pKills] = DOF2_GetInt(file,"Kills"); // We load our settings
PlayerInfo[playerid][pDeaths] = DOF2_GetInt(file,"Deaths");
PlayerInfo[playerid][pMoney] = DOF2_GetInt(file,"Money");
PlayerInfo[playerid][pScore] = DOF2_GetInt(file,"Score");
PlayerInfo[playerid][pAdmin] = DOF2_GetInt(file,"AdminLevel");
return 1;
}
if(PlayerInfo[playerid][pAdmin] >= 2)
{
SendClientMessage(playerid, -1, "Welcome back{FFFFFF}, you are a {00FFFF}An Admin Level 2{FFFFFF}Player. Language: {E33667}English{FFFFFF}.");
SendClientMessage(playerid, -1, "{A82FED}[To remember you]: {FFFFFF}If you want to check admins commands level 2 just type {A82FED}/level2{FFFFFF}.");
PlayerPlaySound(playerid,1058, 0.0, 0.0, 0.0); //Start Sound
PlayerInfo[playerid][pKills] = DOF2_GetInt(file,"Kills"); // We load our settings
PlayerInfo[playerid][pDeaths] = DOF2_GetInt(file,"Deaths");
PlayerInfo[playerid][pMoney] = DOF2_GetInt(file,"Money");
PlayerInfo[playerid][pScore] = DOF2_GetInt(file,"Score");
PlayerInfo[playerid][pAdmin] = DOF2_GetInt(file,"AdminLevel");
return 1;
}
if(PlayerInfo[playerid][pAdmin] >= 3)
{
SendClientMessage(playerid, -1, "Welcome back{FFFFFF}, you are a {00FFFF}An Admin Level 3{FFFFFF}Player. Language: {E33667}English{FFFFFF}.");
SendClientMessage(playerid, -1, "{A82FED}[To remember you]: {FFFFFF}If you want to check admins commands level 3 just type {A82FED}/level3{FFFFFF}.");
PlayerPlaySound(playerid,1058, 0.0, 0.0, 0.0); //Start Sound
PlayerInfo[playerid][pKills] = DOF2_GetInt(file,"Kills"); // We load our settings
PlayerInfo[playerid][pDeaths] = DOF2_GetInt(file,"Deaths");
PlayerInfo[playerid][pMoney] = DOF2_GetInt(file,"Money");
PlayerInfo[playerid][pScore] = DOF2_GetInt(file,"Score");
PlayerInfo[playerid][pAdmin] = DOF2_GetInt(file,"AdminLevel");
return 1;
}
if(PlayerInfo[playerid][pAdmin] >= 4)
{
SendClientMessage(playerid, -1, "Welcome back{FFFFFF}, you are a {00FFFF}An Admin Level 4{FFFFFF}Player. Language: {E33667}English{FFFFFF}.");
SendClientMessage(playerid, -1, "{A82FED}[To remember you]: {FFFFFF}If you want to check admins commands level 4 just type {A82FED}/level4{FFFFFF}.");
PlayerPlaySound(playerid,1058, 0.0, 0.0, 0.0); //Start Sound
PlayerInfo[playerid][pKills] = DOF2_GetInt(file,"Kills"); // We load our settings
PlayerInfo[playerid][pDeaths] = DOF2_GetInt(file,"Deaths");
PlayerInfo[playerid][pMoney] = DOF2_GetInt(file,"Money");
PlayerInfo[playerid][pScore] = DOF2_GetInt(file,"Score");
PlayerInfo[playerid][pAdmin] = DOF2_GetInt(file,"AdminLevel");
return 1;
}
if(PlayerInfo[playerid][pAdmin] >= 5)
{
SendClientMessage(playerid, -1, "Welcome back{FFFFFF}, you are a {00FFFF}Owner Server {FFFFFF}Player. Language: {E33667}English{FFFFFF}.");
SendClientMessage(playerid, -1, "{A82FED}[To remember you]: {FFFFFF}If you want to check admins commands level 5 just type {A82FED}/level5{FFFFFF}.");
PlayerPlaySound(playerid,1058, 0.0, 0.0, 0.0); //Start Sound
PlayerInfo[playerid][pKills] = DOF2_GetInt(file,"Kills"); // We load our settings
PlayerInfo[playerid][pDeaths] = DOF2_GetInt(file,"Deaths");
PlayerInfo[playerid][pMoney] = DOF2_GetInt(file,"Money");
PlayerInfo[playerid][pScore] = DOF2_GetInt(file,"Score");
PlayerInfo[playerid][pAdmin] = DOF2_GetInt(file,"AdminLevel");
return 1;
}
if(PlayerInfo[playerid][pAdmin] >= 0)
{
SendClientMessage(playerid, -1, "Welcome back{FFFFFF}, you are a {00FFFF}Registerd {FFFFFF}Player. Language: {E33667}English{FFFFFF}.");
PlayerPlaySound(playerid,1058, 0.0, 0.0, 0.0); //Start Sound
PlayerInfo[playerid][pKills] = DOF2_GetInt(file,"Kills"); // We load our settings
PlayerInfo[playerid][pDeaths] = DOF2_GetInt(file,"Deaths");
PlayerInfo[playerid][pMoney] = DOF2_GetInt(file,"Money");
PlayerInfo[playerid][pScore] = DOF2_GetInt(file,"Score");
PlayerInfo[playerid][pAdmin] = DOF2_GetInt(file,"AdminLevel");
return 1;
}
}