SA-MP Forums Archive
Cant join army - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Cant join army (/showthread.php?tid=598184)



Cant join army - [SWE]Anonymous - 09.01.2016

Hello.
Im trying to edit a SFCRRPG server.
Everything goes well and i have put my self on as admin and that i should be able to join army but i cant, why not? :c


Re: Cant join army - N0FeaR - 09.01.2016

Hard to help u when u haven't put a code.


Re: Cant join army - saffierr - 09.01.2016

We're not magicians ... show us the code.


Re: Cant join army - [SWE]Anonymous - 09.01.2016

Quote:
Originally Posted by N0FeaR
Посмотреть сообщение
Hard to help u when u haven't put a code.
Quote:
Originally Posted by saffierr
Посмотреть сообщение
We're not magicians ... show us the code.
Quote:

}
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;
}

They are not like in this... but cant still join as army etc.


Re: Cant join army - N0FeaR - 09.01.2016

/adunarmy is that for make u in army team?


Re: Cant join army - KillerDVX - 09.01.2016

Humm.. Did you try to check if the variable is set to "1337" in your accounts file ?


Re: Cant join army - AngryShadow - 09.01.2016

Quote:
Originally Posted by N0FeaR
Посмотреть сообщение
Dude whats the point to comment? if don't have something useful to say just shut up lol.
Well so it have became illegaly and against rules to say what you thing?
Its not sir.
Take a close look on the laws and the rules and u might learning sth.

Why dont u help him then if ur so gotdamn good?
I could help him but i dont want too-


Re: Cant join army - Crayder - 09.01.2016

Quote:
Originally Posted by AngryShadow
Посмотреть сообщение
Well so it have became illegaly and against rules to say what you thing?
Its not sir.
Take a close look on the laws and the rules and u might learning sth.

Why dont u help him then if ur so gotdamn good?
I could help him but i dont want too-
Actually, yes what you posted is very much against the rules. It actually violates three of them to be precise ("No Spam", "Offensive Language", and "Don't Stir Up Arguments"). As the other guy said, shut up. Let's be realistic, you have no reason to be here. If you "could help him" but "dont want too", then let's see it! We all know you can't.

@OP: Are the commands called at all? If you are unsure, place some prints and see if they are printed to the console. Also, DCMD sucks ass compared to the latest processors.