22.10.2013, 15:33
There is a quicker way, yes.
Lets say you want to unblock /admins, /rules and the /help commands:
OR:
pawn Code:
if(pInfo[playerid][Spawned] == 0)
{
if(strcmp(cmdtext,"/admins",true) == 0) return 1;
SendClientMessage(playerid, -1, "You have to be logged in.");
return 0;
}
pawn Code:
if(pInfo[playerid][Spawned] == 0)
{
if(strcmp(cmdtext,"/admins",true) == 0) return 1;
if(strcmp(cmdtext,"/rules",true) == 0) return 1;
if(strcmp(cmdtext,"/help",true) == 0) return 1;
SendClientMessage(playerid, -1, "You have to be logged in.");
return 0;
}
pawn Code:
if(pInfo[playerid][Spawned] == 0)
{
if(strcmp(cmdtext,"/admins",true) == 0 || strcmp(cmdtext,"/rules",true) == 0 || strcmp(cmdtext,"/help",true) == 0) return 1;
SendClientMessage(playerid, -1, "You have to be logged in.");
return 0;
}