AxelPetrov
Posts : 15 Join date : 2013-03-02 Age : 27 Location : United States
| Subject: Make Simple & Fast Commands 3/6/2013, 3:31 pm | |
| the basic layout of a ZCMD command would look like this. - Code:
-
CMD:kill(playerid, params[]) { SetPlayerHealth(playerid, 0); return 1; } but what happens if you add some parameters to it? This is what this simple kill command could look like. It could be so much more sick than that! - Code:
-
CMD:kill(playerid, params[]) { new string[128]; SetPlayerHealth(playerid, 0); format(string, sizeof(string), "%s has '/killed' themself.", GetName(playerid)); SendClientMessageToAll(string); return 1; }
This is just the basic layout of a simple command. Thank you. | |
|