Hey this is my first include, im sorry if anyone thinks this is useless, but i had the idea to prevent the chat in game being spammed by unwanted messages, and usage messages so i made them as a textdraw to show near the map and disappear after 5 seconds.
At the top of your code use #include <message>
- Creates an indiviual textdraw for cetian messages
- prevents chat spam of unwanted messages
- SendErrorMessage(playerid, const message);
- SendUsageMessage(playerid, const message);
- SendInfoMessage(playerid, const message);
- CreateMessageTDs(playerid); // Place under OnPlayerConnect(playerid) Otherwise the textdraws will not show
- DestroyMessageTDs(playerid); // Place Under OnPlayerDisconnect(playerid, reason) Otherwise the textdraws will not show
Note: All comments are welcomed but please instead of posting bad comments, please tell me how i can improve the preformance.
Thanks for taking time to look at my work!