Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* SA-MP Abspann Filterscript
- *
- * (c) by Kaliber, 2017
- *
- */
- #include <a_samp>
- stock const p = 0; //Deine Spieler_ID
- #define A "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~"
- #define SCM SendClientMessage
- stock static ABSPANN[]="~r~~h~~h~Skripter: ~w~Kaliber"#A#"\
- ~b~~h~~h~Mapper: ~w~Kaliber"#A#"\
- ~g~~h~~h~Designer: ~w~Kaliber"#A#"\
- ~y~Coder: ~w~Kaliber"#A#"\
- ~p~Owner: ~w~Kaliber"#A#"\
- ~b~~h~Administrator: ~w~Kaliber"#A#"\
- ~r~Artist: ~w~Kaliber";
- new draw_id = INVALID_TEXT_DRAW;
- public OnFilterScriptExit()
- {
- return DestroyDraw(p,draw_id);
- }
- public OnFilterScriptInit()
- {
- SetWorldTime(0); //Just for the Lulz
- return StartDia(p);
- }
- forward MoveTextDraw(text, playerid,Float:x,Float:y);
- public MoveTextDraw(text, playerid,Float:x,Float:y)
- {
- if(++y > 500.0) return DestroyDraw(playerid, text);
- PlayerTextDrawDestroy(playerid,PlayerText:text);
- draw_id = text = CreateDraw(playerid,x,y);
- SetTimerEx(!"MoveTextDraw",20,0,!"iiff",text,playerid,x,y);
- return 1;
- }
- stock StartDia(playerid)
- {
- new Float:x = 250.0, Float:y = -1300.0;
- draw_id = CreateDraw(playerid,x,y);
- SCM(p,-1,"Abspann beginnt"); //Eine Nachricht hier ist wichtig...
- MoveTextDraw(draw_id,playerid,x,y);
- return 1;
- }
- stock DestroyDraw(playerid, textid)
- {
- PlayerTextDrawHide(playerid,PlayerText:textid);
- PlayerTextDrawDestroy(playerid,PlayerText:textid);
- return 1;
- }
- stock CreateDraw(playerid,Float:a,Float:b)
- {
- new PlayerText:x = CreatePlayerTextDraw(playerid,a,b,ABSPANN);
- PlayerTextDrawBackgroundColor(playerid, x, 255);
- PlayerTextDrawFont(playerid, x, 1);
- PlayerTextDrawLetterSize(playerid, x, 0.400000, 2.000000);
- PlayerTextDrawColor(playerid, x, -1);
- PlayerTextDrawSetOutline(playerid, x, 1);
- PlayerTextDrawSetProportional(playerid, x, 1);
- PlayerTextDrawShow(playerid, x);
- return _:x;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement