Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma semicolon 1
- #pragma newdecls required
- char f_commands[][] = {
- "status",
- "ping",
- };
- public Plugin porno = {
- author = "Hentai",
- name = "Block commands",
- version = "0.0.0.1",
- url = "pornolab.net",
- };
- public void OnPluginStart(){
- for (int i = 0; i < sizeof(f_commands); i++){
- AddCommandListener(listener_commands, f_commands[i]);
- }
- }
- public Action listener_commands(int client, char[] command, int args){
- if (client){
- PrintToConsole(client, "У вас нет прав!");
- return Plugin_Handled;
- }
- return Plugin_Continue;
- }
Add Comment
Please, Sign In to add comment