20.12.2012, 15:57
Hey im new to ZCMD and my question is: how do i make commands?
This is how i set it up:
This is how i set it up:
Код:
#define FILTERSCRIPT #include <a_samp> #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" VehCommands by phantomcraft "); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } #endif COMMAND:whatsup(playerid, params[]) // or CMD:mycommand(playerid, params[]) { SendClientMessage(playerid, 0xF70C6BFF, "WHATSUP"); return 1; } COMMAND:nigger(playerid, params[]) // or CMD:mycommand(playerid, params[]) { SendClientMessage(playerid, 0xF70C6BFF, "nigger"); return 1; }