12.04.2014, 11:36
how to add this in script when some player connect show this textdraw? please help
Код:
#include <a_samp> new Text:Textdraw0; new Text:Textdraw1; new Text:Textdraw2; new Text:Textdraw3; new Text:Textdraw4; new Text:Textdraw5; new Text:Textdraw6; new Text:Textdraw7; new Text:Textdraw8; new Text:Textdraw9; new Text:Textdraw10; new Text:Textdraw11; new Text:Textdraw12; new Text:Textdraw13; new Text:Textdraw14; new Text:Textdraw15; new Text:Textdraw16; new Text:Textdraw17; public OnFilterScriptInit() { print("Textdraw file generated by"); print(" Zamaroht's textdraw editor was loaded."); // Create the textdraws: Textdraw0 = TextDrawCreate(493.000000, 87.000000, "_"); TextDrawBackgroundColor(Textdraw0, 255); TextDrawFont(Textdraw0, 1); TextDrawLetterSize(Textdraw0, 0.490000, 30.500003); TextDrawColor(Textdraw0, -1); TextDrawSetOutline(Textdraw0, 0); TextDrawSetProportional(Textdraw0, 1); TextDrawSetShadow(Textdraw0, 1); TextDrawUseBox(Textdraw0, 1); TextDrawBoxColor(Textdraw0, 150); TextDrawTextSize(Textdraw0, 180.000000, 39.000000); TextDrawSetSelectable(Textdraw0, 1); Textdraw1 = TextDrawCreate(233.000000, 128.000000, "~r~San ~y~Andreas ~g~Death~b~Match"); TextDrawBackgroundColor(Textdraw1, 255); TextDrawFont(Textdraw1, 3); TextDrawLetterSize(Textdraw1, 0.519999, 1.399999); TextDrawColor(Textdraw1, -1); TextDrawSetOutline(Textdraw1, 0); TextDrawSetProportional(Textdraw1, 1); TextDrawSetShadow(Textdraw1, 1); TextDrawSetSelectable(Textdraw1, 0); Textdraw2 = TextDrawCreate(306.000000, 96.000000, "~r~S"); TextDrawBackgroundColor(Textdraw2, 255); TextDrawFont(Textdraw2, 2); TextDrawLetterSize(Textdraw2, 0.839999, 2.399998); TextDrawColor(Textdraw2, -1); TextDrawSetOutline(Textdraw2, 0); TextDrawSetProportional(Textdraw2, 1); TextDrawSetShadow(Textdraw2, 1); TextDrawSetSelectable(Textdraw2, 0); Textdraw3 = TextDrawCreate(323.000000, 96.000000, "~y~A"); TextDrawBackgroundColor(Textdraw3, 255); TextDrawFont(Textdraw3, 2); TextDrawLetterSize(Textdraw3, 0.839999, 2.399998); TextDrawColor(Textdraw3, -1); TextDrawSetOutline(Textdraw3, 0); TextDrawSetProportional(Textdraw3, 1); TextDrawSetShadow(Textdraw3, 1); TextDrawSetSelectable(Textdraw3, 0); Textdraw4 = TextDrawCreate(344.000000, 96.000000, "~g~D"); TextDrawBackgroundColor(Textdraw4, 255); TextDrawFont(Textdraw4, 2); TextDrawLetterSize(Textdraw4, 0.839999, 2.399998); TextDrawColor(Textdraw4, -1); TextDrawSetOutline(Textdraw4, 0); TextDrawSetProportional(Textdraw4, 1); TextDrawSetShadow(Textdraw4, 1); TextDrawSetSelectable(Textdraw4, 0); Textdraw5 = TextDrawCreate(365.000000, 96.000000, "~b~M"); TextDrawBackgroundColor(Textdraw5, 255); TextDrawFont(Textdraw5, 2); TextDrawLetterSize(Textdraw5, 0.839999, 2.399998); TextDrawColor(Textdraw5, -1); TextDrawSetOutline(Textdraw5, 0); TextDrawSetProportional(Textdraw5, 1); TextDrawSetShadow(Textdraw5, 1); TextDrawSetSelectable(Textdraw5, 0); Textdraw6 = TextDrawCreate(493.000000, 91.000000, "_"); TextDrawBackgroundColor(Textdraw6, 255); TextDrawFont(Textdraw6, 1); TextDrawLetterSize(Textdraw6, 0.490000, -1.199996); TextDrawColor(Textdraw6, -65281); TextDrawSetOutline(Textdraw6, 0); TextDrawSetProportional(Textdraw6, 1); TextDrawSetShadow(Textdraw6, 1); TextDrawUseBox(Textdraw6, 1); TextDrawBoxColor(Textdraw6, -65281); TextDrawTextSize(Textdraw6, 180.000000, 39.000000); TextDrawSetSelectable(Textdraw6, 1); Textdraw7 = TextDrawCreate(493.000000, 368.000000, "_"); TextDrawBackgroundColor(Textdraw7, 255); TextDrawFont(Textdraw7, 1); TextDrawLetterSize(Textdraw7, 0.490000, -1.199996); TextDrawColor(Textdraw7, -65281); TextDrawSetOutline(Textdraw7, 0); TextDrawSetProportional(Textdraw7, 1); TextDrawSetShadow(Textdraw7, 1); TextDrawUseBox(Textdraw7, 1); TextDrawBoxColor(Textdraw7, -65281); TextDrawTextSize(Textdraw7, 180.000000, 39.000000); TextDrawSetSelectable(Textdraw7, 1); Textdraw8 = TextDrawCreate(201.000000, 172.000000, "~r~> ~y~No cheating , Flaming or Spaming~r~!"); TextDrawBackgroundColor(Textdraw8, 255); TextDrawFont(Textdraw8, 2); TextDrawLetterSize(Textdraw8, 0.220000, 1.200000); TextDrawColor(Textdraw8, -1); TextDrawSetOutline(Textdraw8, 0); TextDrawSetProportional(Textdraw8, 1); TextDrawSetShadow(Textdraw8, 1); TextDrawSetSelectable(Textdraw8, 0); Textdraw9 = TextDrawCreate(201.000000, 192.000000, "~r~> ~y~always report rule-breakers~r~!"); TextDrawBackgroundColor(Textdraw9, 255); TextDrawFont(Textdraw9, 2); TextDrawLetterSize(Textdraw9, 0.220000, 1.200000); TextDrawColor(Textdraw9, -1); TextDrawSetOutline(Textdraw9, 0); TextDrawSetProportional(Textdraw9, 1); TextDrawSetShadow(Textdraw9, 1); TextDrawSetSelectable(Textdraw9, 0); Textdraw10 = TextDrawCreate(201.000000, 213.000000, "~r~> ~y~use ~g~(/CMDS) ~y~for the list of available commands~r~!"); TextDrawBackgroundColor(Textdraw10, 255); TextDrawFont(Textdraw10, 2); TextDrawLetterSize(Textdraw10, 0.210000, 1.200000); TextDrawColor(Textdraw10, -1); TextDrawSetOutline(Textdraw10, 0); TextDrawSetProportional(Textdraw10, 1); TextDrawSetShadow(Textdraw10, 1); TextDrawSetSelectable(Textdraw10, 0); Textdraw11 = TextDrawCreate(201.000000, 232.000000, "~r~> ~y~Check our our list of minigames~r~!"); TextDrawBackgroundColor(Textdraw11, 255); TextDrawFont(Textdraw11, 2); TextDrawLetterSize(Textdraw11, 0.220000, 1.200000); TextDrawColor(Textdraw11, -269140993); TextDrawSetOutline(Textdraw11, 0); TextDrawSetProportional(Textdraw11, 1); TextDrawSetShadow(Textdraw11, 1); TextDrawSetSelectable(Textdraw11, 0); Textdraw12 = TextDrawCreate(369.000000, 232.000000, "(/minigames)"); TextDrawBackgroundColor(Textdraw12, 255); TextDrawFont(Textdraw12, 2); TextDrawLetterSize(Textdraw12, 0.220000, 1.200000); TextDrawColor(Textdraw12, -1471220993); TextDrawSetOutline(Textdraw12, 0); TextDrawSetProportional(Textdraw12, 1); TextDrawSetShadow(Textdraw12, 1); TextDrawSetSelectable(Textdraw12, 0); Textdraw13 = TextDrawCreate(201.000000, 251.000000, "~r~> ~y~Type ~b~(/help) ~y~for more info~r~!"); TextDrawBackgroundColor(Textdraw13, 255); TextDrawFont(Textdraw13, 2); TextDrawLetterSize(Textdraw13, 0.220000, 1.200000); TextDrawColor(Textdraw13, -269140993); TextDrawSetOutline(Textdraw13, 0); TextDrawSetProportional(Textdraw13, 1); TextDrawSetShadow(Textdraw13, 1); TextDrawSetSelectable(Textdraw13, 0); Textdraw14 = TextDrawCreate(213.000000, 289.000000, "freeroam / race / minigames / stunts / gangwars"); TextDrawBackgroundColor(Textdraw14, 255); TextDrawFont(Textdraw14, 2); TextDrawLetterSize(Textdraw14, 0.220000, 1.200000); TextDrawColor(Textdraw14, 1464795391); TextDrawSetOutline(Textdraw14, 0); TextDrawSetProportional(Textdraw14, 1); TextDrawSetShadow(Textdraw14, 1); TextDrawSetSelectable(Textdraw14, 0); Textdraw15 = TextDrawCreate(360.000000, 192.000000, "(/Report)"); TextDrawBackgroundColor(Textdraw15, 255); TextDrawFont(Textdraw15, 2); TextDrawLetterSize(Textdraw15, 0.220000, 1.200000); TextDrawColor(Textdraw15, 183680255); TextDrawSetOutline(Textdraw15, 0); TextDrawSetProportional(Textdraw15, 1); TextDrawSetShadow(Textdraw15, 1); TextDrawSetSelectable(Textdraw15, 0); Textdraw16 = TextDrawCreate(238.000000, 313.000000, "home of fun - the original since 2013"); TextDrawBackgroundColor(Textdraw16, 255); TextDrawFont(Textdraw16, 2); TextDrawLetterSize(Textdraw16, 0.220000, 1.200000); TextDrawColor(Textdraw16, -1650614529); TextDrawSetOutline(Textdraw16, 0); TextDrawSetProportional(Textdraw16, 1); TextDrawSetShadow(Textdraw16, 1); TextDrawSetSelectable(Textdraw16, 0); Textdraw17 = TextDrawCreate(186.000000, 348.000000, "~b~> ~g~www.F4Wclan.macedonianforum.net ~b~<"); TextDrawBackgroundColor(Textdraw17, 255); TextDrawFont(Textdraw17, 1); TextDrawLetterSize(Textdraw17, 0.450000, 1.200000); TextDrawColor(Textdraw17, -1650614529); TextDrawSetOutline(Textdraw17, 0); TextDrawSetProportional(Textdraw17, 1); TextDrawSetShadow(Textdraw17, 1); TextDrawSetSelectable(Textdraw17, 0); for(new i; i < MAX_PLAYERS; i ++) { if(IsPlayerConnected(i)) { TextDrawShowForPlayer(i, Textdraw0); TextDrawShowForPlayer(i, Textdraw1); TextDrawShowForPlayer(i, Textdraw2); TextDrawShowForPlayer(i, Textdraw3); TextDrawShowForPlayer(i, Textdraw4); TextDrawShowForPlayer(i, Textdraw5); TextDrawShowForPlayer(i, Textdraw6); TextDrawShowForPlayer(i, Textdraw7); TextDrawShowForPlayer(i, Textdraw8); TextDrawShowForPlayer(i, Textdraw9); TextDrawShowForPlayer(i, Textdraw10); TextDrawShowForPlayer(i, Textdraw11); TextDrawShowForPlayer(i, Textdraw12); TextDrawShowForPlayer(i, Textdraw13); TextDrawShowForPlayer(i, Textdraw14); TextDrawShowForPlayer(i, Textdraw15); TextDrawShowForPlayer(i, Textdraw16); TextDrawShowForPlayer(i, Textdraw17); } } return 1; } public OnPlayerConnect(playerid) { TextDrawShowForPlayer(playerid, Textdraw0); TextDrawShowForPlayer(playerid, Textdraw1); TextDrawShowForPlayer(playerid, Textdraw2); TextDrawShowForPlayer(playerid, Textdraw3); TextDrawShowForPlayer(playerid, Textdraw4); TextDrawShowForPlayer(playerid, Textdraw5); TextDrawShowForPlayer(playerid, Textdraw6); TextDrawShowForPlayer(playerid, Textdraw7); TextDrawShowForPlayer(playerid, Textdraw8); TextDrawShowForPlayer(playerid, Textdraw9); TextDrawShowForPlayer(playerid, Textdraw10); TextDrawShowForPlayer(playerid, Textdraw11); TextDrawShowForPlayer(playerid, Textdraw12); TextDrawShowForPlayer(playerid, Textdraw13); TextDrawShowForPlayer(playerid, Textdraw14); TextDrawShowForPlayer(playerid, Textdraw15); TextDrawShowForPlayer(playerid, Textdraw16); TextDrawShowForPlayer(playerid, Textdraw17); return 1; }