25.02.2013, 18:22
(
Последний раз редактировалось Ananisiki; 15.12.2013 в 17:39.
)
^^^^^^^^
public IntroRulesText(playerid)
{
new rules[128]
format(rules, sizeof rules, "~r~NO ~w~Cheating.~n~~n~~r~NO ~w~NO Teaming.~n~~n~Do ~r~NOT ~w~Abuse Commands.~n~~n~Always Respect Admins And Players.~n~~n~~r~NO ~w~DO NOT Teleport To Avoid Death.~n~~n~Drive properly.~n~~n~~r~NO ~w~Bug Exploiting.~n~~n~Do ~r~NOT ~w~Quit / Pause To Avoid.");
introRules[playerid] = TextDrawCreate(320, 160, rules);
TextDrawLetterSize(introRules[playerid], 0.9, 1.8);
TextDrawTextSize(introRules[playerid], 440.0, 600.0);
TextDrawAlignment(introRules[playerid], 2);
TextDrawUseBox(introRules[playerid], true);
TextDrawBoxColor(introRules[playerid], COLOR_BLACK);
TextDrawSetShadow(introRules[playerid], 0);
TextDrawFont(introRules[playerid], 1);
TextDrawSetProportional(introRules[playerid], true);
}
#define ClearChat(%0) for(new i=0; i<20; i++) SendClientMessage(%0, -1, " ")
public OnPlayerRequestClass(playerid, classid) { SetSpawnInfo(playerid, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0); SetTimerEx("login_dialog", 5000, 0, "i", playerid); // here textdraw return 1; }
forward login_dialog(playerid); public login_dialog(playerid) { SetPlayerCameraPos(playerid, x, y, z); SetPlayerCameraLookAt(playerid, x, y, z); // Show dialogs etc. here ClearChat(playerid); // Custom macro to send some empty clientmessages return 1; }