06.03.2011, 22:28
(
Последний раз редактировалось Master_Gangster; 08.03.2011 в 19:46.
)
okay so I'm really (and I mean REALLY) bored today. so I made something new called chuck jokes. when you type the command it will say a random chuck joke from your list to EVERYONE in the server in bright red (:!
Please don't flame me as I know this is not really an FS.
Credits also go to Cuerv0_Negro for giving me the idea out of his source.
EDIT: now uses zcmd, go have fun (:
ZCMD can be found here(can also be used for other commands since I think it's pretty fast):
http://forum.sa-mp.com/showthread.ph...highlight=zcmd
Please don't flame me as I know this is not really an FS.
Credits also go to Cuerv0_Negro for giving me the idea out of his source.
EDIT: now uses zcmd, go have fun (:
Код:
#include <a_samp> #include <zcmd> #define RED 0xE60000FF #define COLOR_GREEN 0x9EC73DAA new RandomMessages[][] = { "Chuck Norris eats beer and drinks bear for breakfast.", "Chuck Norris can kill two stones with one bird." // Add more lines here :D }; public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Chuck Norris Jokes Loaded... "); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } new string[63]; new sendername[MAX_PLAYER_NAME]; COMMAND:chucknorris(playerid, params[]) { if(IsPlayerConnected(playerid)) { if(!IsPlayerAdmin(playerid)) { SendClientMessage(playerid, COLOR_GREEN, "You are not authorized to use that command."); return 1; } new randMSG = random(sizeof(RandomMessages)); SendClientMessageToAll(RED, RandomMessages[randMSG]); format(string, sizeof(string), "[ADMIN]: %s has Announced Chuck's Fact!", sendername); } return 1; } return 0;
http://forum.sa-mp.com/showthread.ph...highlight=zcmd