ZCMD commands?
#1

Hey im new to ZCMD and my question is: how do i make commands?

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;
}
Reply


Messages In This Thread
ZCMD commands? - by NicholasA - 20.12.2012, 15:57
Re: ZCMD commands? - by ReneG - 20.12.2012, 15:59
Re: ZCMD commands? - by NicholasA - 20.12.2012, 16:01

Forum Jump:


Users browsing this thread: 1 Guest(s)