Admin Protection.
#1

Hello, I have some commands I want to protect, What I mean?....

I mean i have this code:



Код:
}
 	if (strcmp(cmdtext, "/joinbot", true) == 0)
    {
        SendClientMessageToAll(COLOR_GREY, "Jeremy has joined the server.");
        return 1;
    }
    if (strcmp(cmdtext, "/leftbot", true) == 0)
    {
        SendClientMessageToAll(COLOR_GREY, "Jeremy has left the server (Left).");
        return 1;
    }
    if (strcmp(cmdtext, "/kickbot", true) == 0)
    {
        SendClientMessage(playerid,0xff0000ff, "----------------------------------");
		SendClientMessage(playerid, COLOR_LIGHTBLUE, "Kicking the bot simulation successful now type: ( /bot toggle off )");
		SendClientMessageToAll(COLOR_RED,"Administrator has kicked Jeremy (Reason: Go away Jeremy :p)");
		SendClientMessageToAll(COLOR_GREY, "Jeremy has left the server (Kicked).");
        return 1;
    }
    if (strcmp(cmdtext, "/banbot", true) == 0)
    {
        SendClientMessage(playerid,0xff0000ff, "----------------------------------");
		SendClientMessage(playerid, COLOR_LIGHTBLUE, "Banning the bot simulation successful, If the bot still talking unloadhim with the rcon.");
		SendClientMessageToAll(COLOR_RED,"Administrator has banned Jeremy (Reason: Ban Evading)");
		SendClientMessageToAll(COLOR_GREY, "Jeremy has left the server (Kicked).");
        return 1;
    }
I want to protect it without zcmd, like if is player admin can execute it, if player is not admin say You are not admin.
Plese Help (This is a test text ) Thanks.
Reply


Messages In This Thread
[UNSOLVED] NEED QUICK HELP Admin Protection. - by Alex_Obando - 18.02.2011, 21:04
Re: Admin Protection. - by MBX97 - 18.02.2011, 21:12
Respuesta: Admin Protection. - by Alex_Obando - 18.02.2011, 21:21
Respuesta: Admin Protection. - by Alex_Obando - 19.02.2011, 02:20
Re: Respuesta: Admin Protection. - by Hal - 19.02.2011, 02:23
Re: Admin Protection. - by Marricio - 19.02.2011, 03:04
Respuesta: Admin Protection. - by Alex_Obando - 19.02.2011, 03:30
Respuesta: Admin Protection. - by Alex_Obando - 19.02.2011, 13:22

Forum Jump:


Users browsing this thread: 1 Guest(s)