14.03.2014, 14:42

MRSH SYSTEMS
Name: News System [TextDraw]
Код:
#include <a_samp> #include <sscanf2> #include <zcmd> new Text:Mrsh[MAX_PLAYERS]; public OnFilterScriptInit() { return 1; } public OnFilterScriptExit() { return 1; } CMD:an(playerid, params[]) { new string[126]; if(sscanf(params,"s[126]",string)) return SendClientMessage(playerid, 0xFF0000AA,"USAGE: /an [news]"); format(string, sizeof(string),"NEWS: ~r~%s",string); TextDrawSetString(Mrsh[playerid], string); return 1; } public OnPlayerConnect(playerid) { Mrsh[playerid] = TextDrawCreate(328.000000, 433.000000, "News:"); TextDrawBackgroundColor(Mrsh[playerid], 255); TextDrawFont(Mrsh[playerid], 1); TextDrawLetterSize(Mrsh[playerid], 0.500000, 1.399999); TextDrawColor(Mrsh[playerid], 16777215); TextDrawSetOutline(Mrsh[playerid], 0); TextDrawSetProportional(Mrsh[playerid], 0); TextDrawSetShadow(Mrsh[playerid], 1); TextDrawUseBox(Mrsh[playerid], 1); TextDrawBoxColor(Mrsh[playerid], 136); TextDrawTextSize(Mrsh[playerid], 0.000000, -319.000000); TextDrawShowForAll(Mrsh[playerid]); }