how do you make /commands and /help
#4

public OnPlayerCommandText(playerid, cmdtext[] )
{

if (strcmp(cmdtext, "/commands", true) == 0)
{
SendClientMessage(playerid, 0xEFEFF7AA, "List of Commands: /rules /gunnerzisawesome");
return 1;
}


if (strcmp(cmdtext, "/rules", true) == 0)
{
SendClientMessage(playerid, 0xEFEFF7AA, "This would be the rules.");
SendClientMessage(playerid, 0xEFEFF7AA, "First Rule: You do not talk about Fight Club");
SendClientMessage(playerid, 0xEFEFF7AA, "Second Rule: You do NOT talk about Fight Club");
SendClientMessage(playerid, 0xEFEFF7AA, "Third Rule: If someone says "Stop" or goes limp, taps out the fight is over.");

return 1;
}


return 0;
}
Reply


Messages In This Thread
how do you make /commands and /help - by decayer - 15.02.2009, 20:42
Re: how do you make /commands and /help - by Salmon - 15.02.2009, 21:13
Re: how do you make /commands and /help - by decayer - 15.02.2009, 23:52
Re: how do you make /commands and /help - by GunnerZ - 16.02.2009, 00:58
Re: how do you make /commands and /help - by Pghpunkid - 16.02.2009, 02:58

Forum Jump:


Users browsing this thread: 2 Guest(s)