SA-MP Forums Archive
Exception Command - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Exception Command (/showthread.php?tid=252929)



Exception Command - The_Tough - 03.05.2011

Onplayercommandtext

if(PlayerData[playerid][NotLogged] == 1 && IsPlayerSpawned(playerid) == 1)
{
NMC(playerid,"[ ! ] You must log in before you can access any command !");
return 0;
}
if(PlayerData[playerid][NotLogged] == 1 && // here I want the command /login to be allowed to be written without recieving the other message what can I do ?)
{
return 1;
}


Re: Exception Command - Backwardsman97 - 03.05.2011

Put your login command above the logged in check.