25.08.2017, 13:21
Try this one.
Код:
// This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include <a_samp> #include <core> #include <float> #define DIALOG_1 0 #define DIALOG_2 1 #define DIALOG_3 2 #define DIALOG_4 3 #pragma tabsize 0 new TDEditor_TD0; new TDEditor_TD1; new TDEditor_TD2; new TDEditor_TD3; new TDEditor_TD4; new TDEditor_TD5; new TDEditor_TD6; new TDEditor_TD7; new TDEditor_TD8; #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } #endif public OnGameModeInit() { TDEditor_TD0 = TextDrawCreate(140.625000, 121.749992, "box"); TextDrawLetterSize(TDEditor_TD0, 0.000000, 19.187500); TextDrawTextSize(TDEditor_TD0, 514.000000, 0.000000); TextDrawAlignment(TDEditor_TD0, 1); TextDrawColor(TDEditor_TD0, -1); TextDrawUseBox(TDEditor_TD0, 1); TextDrawBoxColor(TDEditor_TD0, 255); TextDrawSetShadow(TDEditor_TD0, 0); TextDrawSetOutline(TDEditor_TD0, 0); TextDrawBackgroundColor(TDEditor_TD0, 255); TextDrawFont(TDEditor_TD0, 1); TextDrawSetProportional(TDEditor_TD0, 1); TextDrawSetShadow(TDEditor_TD0, 0); TDEditor_TD1 = TextDrawCreate(156.875000, 133.999969, "box"); TextDrawLetterSize(TDEditor_TD1, 0.000000, 1.437500); TextDrawTextSize(TDEditor_TD1, 318.000000, 0.000000); TextDrawAlignment(TDEditor_TD1, 1); TextDrawColor(TDEditor_TD1, -1); TextDrawUseBox(TDEditor_TD1, 1); TextDrawBoxColor(TDEditor_TD1, -16776961); TextDrawSetShadow(TDEditor_TD1, 0); TextDrawSetOutline(TDEditor_TD1, 0); TextDrawBackgroundColor(TDEditor_TD1, 255); TextDrawFont(TDEditor_TD1, 1); TextDrawSetProportional(TDEditor_TD1, 1); TextDrawSetShadow(TDEditor_TD1, 0); TDEditor_TD2 = TextDrawCreate(337.125854, 133.616638, "box"); TextDrawLetterSize(TDEditor_TD2, 0.000000, 1.437500); TextDrawTextSize(TDEditor_TD2, 500.000854, 0.000000); TextDrawAlignment(TDEditor_TD2, 1); TextDrawColor(TDEditor_TD2, -1); TextDrawUseBox(TDEditor_TD2, 1); TextDrawBoxColor(TDEditor_TD2, -16776961); TextDrawSetShadow(TDEditor_TD2, 0); TextDrawSetOutline(TDEditor_TD2, 0); TextDrawBackgroundColor(TDEditor_TD2, 255); TextDrawFont(TDEditor_TD2, 1); TextDrawSetProportional(TDEditor_TD2, 1); TextDrawSetShadow(TDEditor_TD2, 0); TDEditor_TD3 = TextDrawCreate(337.225860, 240.523162, "box"); TextDrawLetterSize(TDEditor_TD3, 0.000000, 1.437500); TextDrawTextSize(TDEditor_TD3, 500.100860, 0.000000); TextDrawAlignment(TDEditor_TD3, 1); TextDrawColor(TDEditor_TD3, -1); TextDrawUseBox(TDEditor_TD3, 1); TextDrawBoxColor(TDEditor_TD3, -16776961); TextDrawSetShadow(TDEditor_TD3, 0); TextDrawSetOutline(TDEditor_TD3, 0); TextDrawBackgroundColor(TDEditor_TD3, 255); TextDrawFont(TDEditor_TD3, 1); TextDrawSetProportional(TDEditor_TD3, 1); TextDrawSetShadow(TDEditor_TD3, 0); TDEditor_TD4 = TextDrawCreate(155.873870, 240.639877, "box"); TextDrawLetterSize(TDEditor_TD4, 0.000000, 1.437500); TextDrawTextSize(TDEditor_TD4, 317.398010, 0.000000); TextDrawAlignment(TDEditor_TD4, 1); TextDrawColor(TDEditor_TD4, -1); TextDrawUseBox(TDEditor_TD4, 1); TextDrawBoxColor(TDEditor_TD4, -16776961); TextDrawSetShadow(TDEditor_TD4, 0); TextDrawSetOutline(TDEditor_TD4, 0); TextDrawBackgroundColor(TDEditor_TD4, 255); TextDrawFont(TDEditor_TD4, 1); TextDrawSetProportional(TDEditor_TD4, 1); TextDrawSetShadow(TDEditor_TD4, 0); TDEditor_TD5 = TextDrawCreate(193.125000, 132.250076, "dang_nhap"); TextDrawLetterSize(TDEditor_TD5, 0.400000, 1.600000); TextDrawAlignment(TDEditor_TD5, 1); TextDrawColor(TDEditor_TD5, -1); TextDrawSetShadow(TDEditor_TD5, 0); TextDrawSetOutline(TDEditor_TD5, 0); TextDrawBackgroundColor(TDEditor_TD5, 255); TextDrawFont(TDEditor_TD5, 2); TextDrawSetProportional(TDEditor_TD5, 1); TextDrawSetShadow(TDEditor_TD5, 0); TDEditor_TD6 = TextDrawCreate(387.500000, 132.250015, "dang_ki"); TextDrawLetterSize(TDEditor_TD6, 0.400000, 1.600000); TextDrawAlignment(TDEditor_TD6, 1); TextDrawColor(TDEditor_TD6, -1); TextDrawSetShadow(TDEditor_TD6, 0); TextDrawSetOutline(TDEditor_TD6, 0); TextDrawBackgroundColor(TDEditor_TD6, 255); TextDrawFont(TDEditor_TD6, 2); TextDrawSetProportional(TDEditor_TD6, 1); TextDrawSetShadow(TDEditor_TD6, 0); TDEditor_TD7 = TextDrawCreate(197.500000, 239.583343, "thong_tin"); TextDrawLetterSize(TDEditor_TD7, 0.400000, 1.600000); TextDrawAlignment(TDEditor_TD7, 1); TextDrawColor(TDEditor_TD7, -1); TextDrawSetShadow(TDEditor_TD7, 0); TextDrawSetOutline(TDEditor_TD7, 0); TextDrawBackgroundColor(TDEditor_TD7, 255); TextDrawFont(TDEditor_TD7, 2); TextDrawSetProportional(TDEditor_TD7, 1); TextDrawSetShadow(TDEditor_TD7, 0); TDEditor_TD8 = TextDrawCreate(394.375000, 239.583251, "thoat"); TextDrawLetterSize(TDEditor_TD8, 0.400000, 1.600000); TextDrawAlignment(TDEditor_TD8, 1); TextDrawColor(TDEditor_TD8, -1); TextDrawSetShadow(TDEditor_TD8, 0); TextDrawSetOutline(TDEditor_TD8, 0); TextDrawBackgroundColor(TDEditor_TD8, 255); TextDrawFont(TDEditor_TD8, 2); TextDrawSetProportional(TDEditor_TD8, 1); TextDrawSetShadow(TDEditor_TD8, 0); SetGameModeText("Test"); return 1; } public OnGameModeExit() { return 1; } public OnPlayerConnect(playerid) { TextDrawHideForPlayer(playerid, TDEditor_TD0); TextDrawHideForPlayer(playerid, TDEditor_TD1); TextDrawHideForPlayer(playerid, TDEditor_TD2); TextDrawHideForPlayer(playerid, TDEditor_TD3); TextDrawHideForPlayer(playerid, TDEditor_TD4); TextDrawHideForPlayer(playerid, TDEditor_TD5); TextDrawHideForPlayer(playerid, TDEditor_TD6); TextDrawHideForPlayer(playerid, TDEditor_TD7); TextDrawHideForPlayer(playerid, TDEditor_TD8); return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { TextDrawHideForPlayer(playerid, TDEditor_TD0); TextDrawHideForPlayer(playerid, TDEditor_TD1); TextDrawHideForPlayer(playerid, TDEditor_TD2); TextDrawHideForPlayer(playerid, TDEditor_TD3); TextDrawHideForPlayer(playerid, TDEditor_TD4); TextDrawHideForPlayer(playerid, TDEditor_TD5); TextDrawHideForPlayer(playerid, TDEditor_TD6); TextDrawHideForPlayer(playerid, TDEditor_TD7); TextDrawHideForPlayer(playerid, TDEditor_TD8); return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mycommand", cmdtext, true, 10) == 0) { // Do something here return 1; } return 0; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } public OnPlayerEnterCheckpoint(playerid) { return 1; } public OnPlayerLeaveCheckpoint(playerid) { return 1; } public OnPlayerEnterRaceCheckpoint(playerid) { return 1; } public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } public OnRconCommand(cmd[]) { return 1; } public OnPlayerRequestClass(playerid, classid) { return 1; } public OnPlayerRequestSpawn(playerid) { return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { return 1; } public OnVehicleMod(playerid, vehicleid, componentid)