23.02.2010, 14:54
Allways get tired of the SERVER: Unknown command when a player types something else, that isn't added to your gamemode commands? Well here is how to do it, if you have dcmd or onplayercommandtext. In the end of the whole OnPlayerCommandText there should be
replace it with this
put whatever you want it to say, and put this in the defines place
You can change the text to whatever you want, you can even add a GameTextForPlayer, here are my set of colors i am using
P.S COLOR_RACE is pretty cool
Code:
return 0;
Code:
return SendClientMesage(playerid, COLOR_ORANGE, "Command does not exist please use /help"); }
Code:
#define COLOR_ORANGE 0xFF9900AA
Code:
#define COLOR_RED 0xAA3333AA #define COLOR_GREY 0xAFAFAFAA #define COLOR_GREEN 0x33AA33AA #define COLOR_RED 0xAA3333AA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_WHITE 0xFFFFFFAA #define COLOR_ORANGE 0xFF9900AA #define COLOR_SPAWN 0xFF8C55FF #define COLOR_LIGHTBLUE 0x6DC5F3FF #define COLOR_ADMIN 0xFF0000FF #define COLOR_SAY 0x2986CEFF #define COLOR_SYSGREY 0xC6BEBDFF #define COLOR_BLACK 0x000000FF #define COLOR_JOIN 0x74E80099 #define COLOR_WARN 0xBE615099 #define COLOR_RACE 0x00BBBB99 #define COLOR_KRED 0xFF0000FF