10.10.2011, 00:57
Hello, I have this if (!strcmp(cmdtext, "/weapons", true)) , I need the cmd to be for RCON admins only, any help please?
SendClientMessage(playerid, -1, "You must be RCON Admin to use that command!"); //send message} else {
if (!strcmp(cmdtext, "/weapons", true)) // checks if player typed /weapons}
{// blahblahblah}
if(!IsPlayerAdmin(playerid)) // if not an rcon admin}
{SendClientMessage(playerid, -1, "You must be RCON Admin to use that command!"); //send message} else {// blahblahblah}
if (strcmp())
{
if (!IsPlayerAdmin(playerid)) { return // message here }
}
if(!strcmp(cmdtext, "/weapons", true) && IsPlayerAdmin(playerid))
if (strcmp(cmdtext, "/weapons", true, 8))
{
if(IsPlayerAdmin(playerid))
{
// weapon stuff here
return 1;
} else return SendClientMessage(playerid,-1,"You Must Be An RCON Administrator To Use This Command.");
}