Sscanf + LuxAdmin
#2

Up +....

Hi all , again .

I fout the problem , problem is :

public OnPlayerCommandReceived(playerid, cmdtext[])
{
if(AccInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid, red, "Sorry, but, you must be {00BBF6}Logged In{FF0000} to use Commands!");
//--------------------------------------------------------------------------
if(GetPVarInt(playerid, "Jailed") == 1 && AccInfo[playerid][Level] < 10)
{
SendClientMessage(playerid,red,"ERROR: You cannot use commands in Jail!");
return 1;
}
//--------------------------------------------------------------------------
if(GetPVarInt(playerid, "PlayerInDM") == 1 || GetPVarInt(playerid, "PlayerInRace") == 1)
{
if(strcmp(cmdtext, "/leave", true) == 0) return 0;
if(strcmp(cmdtext, "/exitrace", true) == 0) return 0;
if(strcmp(cmdtext, "/stats", true) == 0) return 0;
if(strcmp(cmdtext, "/acmds", true) == 0) return 0;
if(strcmp(cmdtext, "/explode", true) == 0) return 0;
if(strcmp(cmdtext, "/report", true) == 0) return 0;
else GameTextForPlayer(playerid, "~w~Use ~r~/Leave~w~ to leave!", 6000, 4);
return 1;
}
//--------------------------------------------------------------------------
if(AccInfo[playerid][BRBSts] == 1)
{
if(strcmp(cmdtext, "/back", true) == 0) return 0;
else GameTextForPlayer(playerid, "~w~Use ~r~/Back~w~ to return!", 4000, 4);
return 1;
}
return 0;
}

how i can put this in GameMode without problems? If i add this i will can't use commands
Reply


Messages In This Thread
Sscanf + LuxAdmin - by Ph0eniX - 09.01.2014, 16:55
Re: Sscanf + LuxAdmin - by Ph0eniX - 10.01.2014, 09:12
Re: Sscanf + LuxAdmin - by Ph0eniX - 10.01.2014, 15:10

Forum Jump:


Users browsing this thread: 2 Guest(s)