03.03.2011, 21:43
How do i get new commands and an rp gamemode ive been looking at tuts but i just dont get it
if(strcmp(cmdtext, "/hello", true, 6)== 0) //the 6 is the length of the command. /hello is 6 characters
{
SendClientMessageToAll(0xFFFFFFFF, "Hello everyone!"); //this makes it so if players type /hello, it sends a message to everyone saying "Hello everyone!". 0xFFFFFFFF is the color of the text, which can be changed.
return 1;
}