} 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; }
if(IsPlayerAdmin(playerid))
//blah blah bla ur cmd here
else
{
SendClientMessage(playerid, 0xff0000ff, "You Need To Be A RCON Admin To Do this cmd");
}
return 1;
}
Plese send me my code with this protection icluded, Just quote me and add the protection plese
![]() |
if (strcmp(cmdtext, "/banbot", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
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).");
}
else
{
SendClientMeesage(playerid,COLOR_RED,"You're not authorized!");
}
return 1;
}