18.02.2011, 21:04
(
Последний раз редактировалось Alex_Obando; 19.02.2011 в 13:33.
)
Hello, I have some commands I want to protect, What I mean?....
I mean i have this code:
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.
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; }
Plese Help (This is a test text ) Thanks.