}
if(PLAYERLIST_authed[ID] != 1)
{
format(string,sizeof(string),"%s(%d) is not logged into to the server. You must wait till they login before you give them Army status.",PlayerName(ID),ID);
SendClientMessage(playerid,COLOR_ERROR,string);
return 1;
}
if(CanUseArmy[ID] == 1337)
{
format(string,sizeof(string),"%s(%d) is already an Army member.",PlayerName(ID),ID);
SendClientMessage(playerid,COLOR_ERROR,string);
return 1;
}
format(string,sizeof(string),"[ADMIN ARMY] Administrator has given %s(%d) Army status.",PlayerName(ID),ID);
SendClientMessageToAll(COLOR_ADMIN,string);
SendClientMessage(ID,COLOR_ADMIN,"You have been given Army status by a Server Administrator. Congratulations.");
CanUseArmy[ID] =1337;
format(string,sizeof(string),"9[ADMIN ARMY] Administrator has given %s(%d) Army status.",PlayerName(ID),ID);
IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
return 1;
}
dcmd_adunarmy(playerid,params[])
{
new string[128];
new ID;
if(sscanf(params,"ui",ID))
{
SendClientMessage(playerid,COLOR_ERROR,"USAGE: /adunarmy (Player Name/ID)");
return 1;
}
if(!IsPlayerConnected(ID))
{
format(string,sizeof(string),"The player ID (%d) is not connected to the server. You cannot take their Army status.",ID);
SendClientMessage(playerid,COLOR_ERROR,string);
return 1;
}
if(PLAYERLIST_authed[ID] != 1)
{
format(string,sizeof(string),"%s(%d) is not logged into to the server. You must wait till they login before you take their Army status.",PlayerName(ID),ID);
SendClientMessage(playerid,COLOR_ERROR,string);
return 1;
}
if(CanUseArmy[ID] != 1337)
{
format(string,sizeof(string),"%s(%d) is not an Army member.",PlayerName(ID),ID);
SendClientMessage(playerid,COLOR_ERROR,string);
return 1;
}
format(string,sizeof(string),"[ADMIN UNARMY] Administrator has taken %s(%d)'s Army status.",PlayerName(ID),ID);
SendClientMessageToAll(COLOR_ADMIN,string);
SendClientMessage(ID,COLOR_ADMIN,"Your Army status has been taken away from you by a Server Administrator. Unlucky.");
CanUseArmy[ID] =0;
format(string,sizeof(string),"9[ADMIN UNARMY] Administrator has taken %s(%d)'s Army status.",PlayerName(ID),ID);
IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
return 1;
}
dcmd_adcia(playerid,params[])
{
new string[128];
new ID;
if(sscanf(params,"ui",ID))
{
SendClientMessage(playerid,COLOR_ERROR,"USAGE: /adcia (Player Name/ID)");
return 1;
}
if(!IsPlayerConnected(ID))
{
format(string,sizeof(string),"The player ID (%d) is not connected to the server. You cannot give them CIA status.",ID);
SendClientMessage(playerid,COLOR_ERROR,string);
return 1;
}
if(PLAYERLIST_authed[ID] != 1)
{
format(string,sizeof(string),"%s(%d) is not logged into to the server. You must wait till they login before you give them CIA status.",PlayerName(ID),ID);
SendClientMessage(playerid,COLOR_ERROR,string);
return 1;
}
if(CanUseCIA[ID] == 1337)
{
format(string,sizeof(string),"%s(%d) is already a CIA member.",PlayerName(ID),ID);
SendClientMessage(playerid,COLOR_ERROR,string);
return 1;
}
format(string,sizeof(string),"[ADMIN CIA] Administrator has given %s(%d) CIA status.",PlayerName(ID),ID);
SendClientMessageToAll(COLOR_ADMIN,string);
SendClientMessage(ID,COLOR_ADMIN,"You have been given CIA status by a Server Administrator. Congratulations.");
CanUseCIA[ID] =1337;
format(string,sizeof(string),"9[ADMIN CIA] Administrator has given %s(%d) CIA status.",PlayerName(ID),ID);
IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
return 1;
}
}
if (!PLAYERLIST_authed[playerid]) {
ShowLoginScreen(playerid);
return 0;
}
if(gTeam[playerid] < 9 && SavedWantedLevel[playerid] != 0)
{
SendClientMessage(playerid,COLOR_ERROR,"You cannot use this class as you were wanted last time you left the server.");
return 0;
}
if(gTeam[playerid] < 9 && SavedJailTime[playerid] != 0)
{
SendClientMessage(playerid,COLOR_ERROR,"You cannot use this class as you were in jail last time you left the server.");
return 0;
}
if(gTeam[playerid] == TEAM_ARMY && CanUseArmy[playerid] != 1337)
{
SendClientMessage(playerid,COLOR_ERROR,"You do not have permission to use this class. Just Ask admin (since its in BETA MODE)");
return 0;
}
if(gTeam[playerid] == TEAM_CIA && CanUseCIA[playerid] != 1337)
{
SendClientMessage(playerid,COLOR_ERROR,"You do not have permission to use this class. Just Ask admin (since its in BETA MODE)");
return 0;
}
if(GetPlayerSkin(playerid) == 286 && GetPlayerScore(playerid) <= 499)
{
SendClientMessage(playerid,COLOR_ERROR,"You do not have permission to use this class. Just Ask admin (since its in BETA MODE)");
return 0;
}
if(gTeam[playerid] == TEAM_COP && GetPlayerScore(playerid) <= 49)
{
SendClientMessage(playerid,COLOR_ERROR,"You do not have permission to use this class. You must gain 50 score before using this class.");
return 0;
}
return 1;
}
|