Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class public:
- def __init__(self, name, arguments, body):
- self.name = name;
- self.arguments = arguments;
- self.body = body;
- def show(self):
- code = "public " + self.name + "(";
- if(len(self.arguments)):
- argumentsAdded = 0;
- for a in self.arguments:
- code += a;
- argumentsAdded += 1;
- if(argumentsAdded < len(self.arguments) - 1):
- code += ", ";
- else:
- code += ")";
- code += "\n{\n" + self.body + "\n}";
- print(code + "\n");
- init = public("plugin_init", [""], ' RegisterHam(Ham_Spawn, "player", "playerSpawn", true);');
- putinserver = public("client_putinserver", ["index"], ' log_amx("Hello")');
- init.show();
- putinserver.show();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement