A little problem?
#1

When I or another admin writes /makemeadmin and he is logged into Rcon he'll become an admin, I want, if he is already an admin, It will say : You are already an admin. But couldn't find how to make another else and if. Could anyone help me please? Thanks already :P

pawn Код:
if (strcmp("/makemeadmin", cmdtext, true, 6) == 0)
    {
    if (IsPlayerAdmin(playerid))
    {
    admin[playerid] = 1;
    SendClientMessage(playerid,COLOR_GREEN,"You became an admin!");
    return 1;
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"You must be logged on in RCON!");
    return 1;
    }
    }
Reply


Messages In This Thread
A little problem? - by lawonama - 09.07.2011, 00:19
AW: A little problem? - by Nero_3D - 09.07.2011, 00:42

Forum Jump:


Users browsing this thread: 1 Guest(s)