Advertisement
mskamilor

Skin auswahl

May 21st, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 12.96 KB | None | 0 0
  1. /* 2012-05-21 20:20
  2.  
  3.     ############    ###########   ###   ###
  4.     ############   ###########    ###  ###
  5.     ### #### ###   ######         ### ###
  6.     ###  ##  ###   ###########    ######
  7.     ###      ###    ###########   ### ###
  8.     ###      ###         ######   ###  ###
  9.     ###      ###   ###########    ###   ### (c)
  10.  
  11.  
  12.  
  13. */
  14. #include <a_samp>
  15.  
  16. #define SLOTS 500 // Bitte eintragen wie viele slots euer Server hat
  17. #define PASKI -0.300035
  18.  
  19. new Float:cpPlayer[SLOTS];
  20. new Text:Kamera[23];
  21.  
  22.  
  23. #define CLATX 268.7555
  24. #define CLATY 1884.3098
  25. #define CLATZ -30.0938
  26.  
  27.  
  28. #define RINC 3.2
  29.  
  30.  
  31. public OnFilterScriptInit()
  32. {
  33.  
  34.  
  35.     Kamera[0] = TextDrawCreate(0.000000, 0.000000, "_");
  36.     TextDrawBackgroundColor(Kamera[0], 255);
  37.     TextDrawFont(Kamera[0], 1);
  38.     TextDrawLetterSize(Kamera[0], 0.500000, 50.099956);
  39.     TextDrawColor(Kamera[0], -1);
  40.     TextDrawSetOutline(Kamera[0], 0);
  41.     TextDrawSetProportional(Kamera[0], 1);
  42.     TextDrawSetShadow(Kamera[0], 1);
  43.     TextDrawUseBox(Kamera[0], 1);
  44.     TextDrawBoxColor(Kamera[0], 13112375);
  45.     TextDrawTextSize(Kamera[0], 640.000000, 0.000000);
  46.  
  47.     Kamera[1] = TextDrawCreate(0.000000, 20.000000, "_");
  48.     TextDrawBackgroundColor(Kamera[1], 255);
  49.     TextDrawFont(Kamera[1], 1);
  50.     TextDrawLetterSize(Kamera[1], 0.500000, PASKI);
  51.     TextDrawColor(Kamera[1], -1);
  52.     TextDrawSetOutline(Kamera[1], 0);
  53.     TextDrawSetProportional(Kamera[1], 1);
  54.     TextDrawSetShadow(Kamera[1], 1);
  55.     TextDrawUseBox(Kamera[1], 1);
  56.     TextDrawBoxColor(Kamera[1], 180881970);
  57.     TextDrawTextSize(Kamera[1], 640.000000, 0.000000);
  58.  
  59.     Kamera[2] = TextDrawCreate(0.000000, 40.000000, "_");
  60.     TextDrawBackgroundColor(Kamera[2], 255);
  61.     TextDrawFont(Kamera[2], 1);
  62.     TextDrawLetterSize(Kamera[2], 0.500000, PASKI);
  63.     TextDrawColor(Kamera[2], -1);
  64.     TextDrawSetOutline(Kamera[2], 0);
  65.     TextDrawSetProportional(Kamera[2], 1);
  66.     TextDrawSetShadow(Kamera[2], 1);
  67.     TextDrawUseBox(Kamera[2], 1);
  68.     TextDrawBoxColor(Kamera[2], 180881970);
  69.     TextDrawTextSize(Kamera[2], 640.000000, 0.000000);
  70.  
  71.     Kamera[3] = TextDrawCreate(0.000000, 60.000000, "_");
  72.     TextDrawBackgroundColor(Kamera[3], 255);
  73.     TextDrawFont(Kamera[3], 1);
  74.     TextDrawLetterSize(Kamera[3], 0.500000, PASKI);
  75.     TextDrawColor(Kamera[3], -1);
  76.     TextDrawSetOutline(Kamera[3], 0);
  77.     TextDrawSetProportional(Kamera[3], 1);
  78.     TextDrawSetShadow(Kamera[3], 1);
  79.     TextDrawUseBox(Kamera[3], 1);
  80.     TextDrawBoxColor(Kamera[3], 180881970);
  81.     TextDrawTextSize(Kamera[3], 640.000000, 0.000000);
  82.  
  83.     Kamera[4] = TextDrawCreate(0.000000, 80.000000, "_");
  84.     TextDrawBackgroundColor(Kamera[4], 255);
  85.     TextDrawFont(Kamera[4], 1);
  86.     TextDrawLetterSize(Kamera[4], 0.500000, PASKI);
  87.     TextDrawColor(Kamera[4], -1);
  88.     TextDrawSetOutline(Kamera[4], 0);
  89.     TextDrawSetProportional(Kamera[4], 1);
  90.     TextDrawSetShadow(Kamera[4], 1);
  91.     TextDrawUseBox(Kamera[4], 1);
  92.     TextDrawBoxColor(Kamera[4], 180881970);
  93.     TextDrawTextSize(Kamera[4], 640.000000, 0.000000);
  94.  
  95.     Kamera[5] = TextDrawCreate(0.000000, 100.000000, "_");
  96.     TextDrawBackgroundColor(Kamera[5], 255);
  97.     TextDrawFont(Kamera[5], 1);
  98.     TextDrawLetterSize(Kamera[5], 0.500000, PASKI);
  99.     TextDrawColor(Kamera[5], -1);
  100.     TextDrawSetOutline(Kamera[5], 0);
  101.     TextDrawSetProportional(Kamera[5], 1);
  102.     TextDrawSetShadow(Kamera[5], 1);
  103.     TextDrawUseBox(Kamera[5], 1);
  104.     TextDrawBoxColor(Kamera[5], 180881970);
  105.     TextDrawTextSize(Kamera[5], 640.000000, 0.000000);
  106.  
  107.     Kamera[6] = TextDrawCreate(0.000000, 120.000000, "_");
  108.     TextDrawBackgroundColor(Kamera[6], 255);
  109.     TextDrawFont(Kamera[6], 1);
  110.     TextDrawLetterSize(Kamera[6], 0.500000, PASKI);
  111.     TextDrawColor(Kamera[6], -1);
  112.     TextDrawSetOutline(Kamera[6], 0);
  113.     TextDrawSetProportional(Kamera[6], 1);
  114.     TextDrawSetShadow(Kamera[6], 1);
  115.     TextDrawUseBox(Kamera[6], 1);
  116.     TextDrawBoxColor(Kamera[6], 180881970);
  117.     TextDrawTextSize(Kamera[6], 640.000000, 0.000000);
  118.  
  119.     Kamera[7] = TextDrawCreate(0.000000, 140.000000, "_");
  120.     TextDrawBackgroundColor(Kamera[7], 255);
  121.     TextDrawFont(Kamera[7], 1);
  122.     TextDrawLetterSize(Kamera[7], 0.500000, PASKI);
  123.     TextDrawColor(Kamera[7], -1);
  124.     TextDrawSetOutline(Kamera[7], 0);
  125.     TextDrawSetProportional(Kamera[7], 1);
  126.     TextDrawSetShadow(Kamera[7], 1);
  127.     TextDrawUseBox(Kamera[7], 1);
  128.     TextDrawBoxColor(Kamera[7], 180881970);
  129.     TextDrawTextSize(Kamera[7], 640.000000, 0.000000);
  130.  
  131.     Kamera[8] = TextDrawCreate(0.000000, 160.000000, "_");
  132.     TextDrawBackgroundColor(Kamera[8], 255);
  133.     TextDrawFont(Kamera[8], 1);
  134.     TextDrawLetterSize(Kamera[8], 0.500000, PASKI);
  135.     TextDrawColor(Kamera[8], -1);
  136.     TextDrawSetOutline(Kamera[8], 0);
  137.     TextDrawSetProportional(Kamera[8], 1);
  138.     TextDrawSetShadow(Kamera[8], 1);
  139.     TextDrawUseBox(Kamera[8], 1);
  140.     TextDrawBoxColor(Kamera[8], 180881970);
  141.     TextDrawTextSize(Kamera[8], 640.000000, 0.000000);
  142.  
  143.     Kamera[9] = TextDrawCreate(0.000000, 180.000000, "_");
  144.     TextDrawBackgroundColor(Kamera[9], 255);
  145.     TextDrawFont(Kamera[9], 1);
  146.     TextDrawLetterSize(Kamera[9], 0.500000, PASKI);
  147.     TextDrawColor(Kamera[9], -1);
  148.     TextDrawSetOutline(Kamera[9], 0);
  149.     TextDrawSetProportional(Kamera[9], 1);
  150.     TextDrawSetShadow(Kamera[9], 1);
  151.     TextDrawUseBox(Kamera[9], 1);
  152.     TextDrawBoxColor(Kamera[9], 180881970);
  153.     TextDrawTextSize(Kamera[9], 640.000000, 0.000000);
  154.  
  155.     Kamera[10] = TextDrawCreate(0.000000, 200.000000, "_");
  156.     TextDrawBackgroundColor(Kamera[10], 255);
  157.     TextDrawFont(Kamera[10], 1);
  158.     TextDrawLetterSize(Kamera[10], 0.500000, PASKI);
  159.     TextDrawColor(Kamera[10], -1);
  160.     TextDrawSetOutline(Kamera[10], 0);
  161.     TextDrawSetProportional(Kamera[10], 1);
  162.     TextDrawSetShadow(Kamera[10], 1);
  163.     TextDrawUseBox(Kamera[10], 1);
  164.     TextDrawBoxColor(Kamera[10], 180881970);
  165.     TextDrawTextSize(Kamera[10], 640.000000, 0.000000);
  166.  
  167.     Kamera[11] = TextDrawCreate(0.000000, 220.000000, "_");
  168.     TextDrawBackgroundColor(Kamera[11], 255);
  169.     TextDrawFont(Kamera[11], 1);
  170.     TextDrawLetterSize(Kamera[11], 0.500000, PASKI);
  171.     TextDrawColor(Kamera[11], -1);
  172.     TextDrawSetOutline(Kamera[11], 0);
  173.     TextDrawSetProportional(Kamera[11], 1);
  174.     TextDrawSetShadow(Kamera[11], 1);
  175.     TextDrawUseBox(Kamera[11], 1);
  176.     TextDrawBoxColor(Kamera[11], 180881970);
  177.     TextDrawTextSize(Kamera[11], 640.000000, 0.000000);
  178.  
  179.     Kamera[12] = TextDrawCreate(0.000000, 240.000000, "_");
  180.     TextDrawBackgroundColor(Kamera[12], 255);
  181.     TextDrawFont(Kamera[12], 1);
  182.     TextDrawLetterSize(Kamera[12], 0.500000, PASKI);
  183.     TextDrawColor(Kamera[12], -1);
  184.     TextDrawSetOutline(Kamera[12], 0);
  185.     TextDrawSetProportional(Kamera[12], 1);
  186.     TextDrawSetShadow(Kamera[12], 1);
  187.     TextDrawUseBox(Kamera[12], 1);
  188.     TextDrawBoxColor(Kamera[12], 180881970);
  189.     TextDrawTextSize(Kamera[12], 640.000000, 0.000000);
  190.  
  191.     Kamera[13] = TextDrawCreate(0.000000, 260.000000, "_");
  192.     TextDrawBackgroundColor(Kamera[13], 255);
  193.     TextDrawFont(Kamera[13], 1);
  194.     TextDrawLetterSize(Kamera[13], 0.500000, PASKI);
  195.     TextDrawColor(Kamera[13], -1);
  196.     TextDrawSetOutline(Kamera[13], 0);
  197.     TextDrawSetProportional(Kamera[13], 1);
  198.     TextDrawSetShadow(Kamera[13], 1);
  199.     TextDrawUseBox(Kamera[13], 1);
  200.     TextDrawBoxColor(Kamera[13], 180881970);
  201.     TextDrawTextSize(Kamera[13], 640.000000, 0.000000);
  202.  
  203.     Kamera[14] = TextDrawCreate(0.000000, 280.000000, "_");
  204.     TextDrawBackgroundColor(Kamera[14], 255);
  205.     TextDrawFont(Kamera[14], 1);
  206.     TextDrawLetterSize(Kamera[14], 0.500000, PASKI);
  207.     TextDrawColor(Kamera[14], -1);
  208.     TextDrawSetOutline(Kamera[14], 0);
  209.     TextDrawSetProportional(Kamera[14], 1);
  210.     TextDrawSetShadow(Kamera[14], 1);
  211.     TextDrawUseBox(Kamera[14], 1);
  212.     TextDrawBoxColor(Kamera[14], 180881970);
  213.     TextDrawTextSize(Kamera[14], 640.000000, 0.000000);
  214.  
  215.     Kamera[15] = TextDrawCreate(0.000000, 300.000000, "_");
  216.     TextDrawBackgroundColor(Kamera[15], 255);
  217.     TextDrawFont(Kamera[15], 1);
  218.     TextDrawLetterSize(Kamera[15], 0.500000, PASKI);
  219.     TextDrawColor(Kamera[15], -1);
  220.     TextDrawSetOutline(Kamera[15], 0);
  221.     TextDrawSetProportional(Kamera[15], 1);
  222.     TextDrawSetShadow(Kamera[15], 1);
  223.     TextDrawUseBox(Kamera[15], 1);
  224.     TextDrawBoxColor(Kamera[15], 180881970);
  225.     TextDrawTextSize(Kamera[15], 640.000000, 0.000000);
  226.  
  227.     Kamera[16] = TextDrawCreate(0.000000, 320.000000, "_");
  228.     TextDrawBackgroundColor(Kamera[16], 255);
  229.     TextDrawFont(Kamera[16], 1);
  230.     TextDrawLetterSize(Kamera[16], 0.500000, PASKI);
  231.     TextDrawColor(Kamera[16], -1);
  232.     TextDrawSetOutline(Kamera[16], 0);
  233.     TextDrawSetProportional(Kamera[16], 1);
  234.     TextDrawSetShadow(Kamera[16], 1);
  235.     TextDrawUseBox(Kamera[16], 1);
  236.     TextDrawBoxColor(Kamera[16], 180881970);
  237.     TextDrawTextSize(Kamera[16], 640.000000, 0.000000);
  238.  
  239.     Kamera[17] = TextDrawCreate(0.000000, 340.000000, "_");
  240.     TextDrawBackgroundColor(Kamera[17], 255);
  241.     TextDrawFont(Kamera[17], 1);
  242.     TextDrawLetterSize(Kamera[17], 0.500000, PASKI);
  243.     TextDrawColor(Kamera[17], -1);
  244.     TextDrawSetOutline(Kamera[17], 0);
  245.     TextDrawSetProportional(Kamera[17], 1);
  246.     TextDrawSetShadow(Kamera[17], 1);
  247.     TextDrawUseBox(Kamera[17], 1);
  248.     TextDrawBoxColor(Kamera[17], 180881970);
  249.     TextDrawTextSize(Kamera[17], 640.000000, 0.000000);
  250.  
  251.     Kamera[18] = TextDrawCreate(0.000000, 360.000000, "_");
  252.     TextDrawBackgroundColor(Kamera[18], 255);
  253.     TextDrawFont(Kamera[18], 1);
  254.     TextDrawLetterSize(Kamera[18], 0.500000, PASKI);
  255.     TextDrawColor(Kamera[18], -1);
  256.     TextDrawSetOutline(Kamera[18], 0);
  257.     TextDrawSetProportional(Kamera[18], 1);
  258.     TextDrawSetShadow(Kamera[18], 1);
  259.     TextDrawUseBox(Kamera[18], 1);
  260.     TextDrawBoxColor(Kamera[18], 180881970);
  261.     TextDrawTextSize(Kamera[18], 640.000000, 0.000000);
  262.  
  263.     Kamera[19] = TextDrawCreate(0.000000, 380.000000, "_");
  264.     TextDrawBackgroundColor(Kamera[19], 255);
  265.     TextDrawFont(Kamera[19], 1);
  266.     TextDrawLetterSize(Kamera[19], 0.500000, PASKI);
  267.     TextDrawColor(Kamera[19], -1);
  268.     TextDrawSetOutline(Kamera[19], 0);
  269.     TextDrawSetProportional(Kamera[19], 1);
  270.     TextDrawSetShadow(Kamera[19], 1);
  271.     TextDrawUseBox(Kamera[19], 1);
  272.     TextDrawBoxColor(Kamera[19], 180881970);
  273.     TextDrawTextSize(Kamera[19], 640.000000, 0.000000);
  274.  
  275.     Kamera[20] = TextDrawCreate(0.000000, 400.000000, "_");
  276.     TextDrawBackgroundColor(Kamera[20], 255);
  277.     TextDrawFont(Kamera[20], 1);
  278.     TextDrawLetterSize(Kamera[20], 0.500000, PASKI);
  279.     TextDrawColor(Kamera[20], -1);
  280.     TextDrawSetOutline(Kamera[20], 0);
  281.     TextDrawSetProportional(Kamera[20], 1);
  282.     TextDrawSetShadow(Kamera[20], 1);
  283.     TextDrawUseBox(Kamera[20], 1);
  284.     TextDrawBoxColor(Kamera[20], 180881970);
  285.     TextDrawTextSize(Kamera[20], 640.000000, 0.000000);
  286.  
  287.     Kamera[21] = TextDrawCreate(0.000000, 420.000000, "_");
  288.     TextDrawBackgroundColor(Kamera[21], 255);
  289.     TextDrawFont(Kamera[21], 1);
  290.     TextDrawLetterSize(Kamera[21], 0.500000, PASKI);
  291.     TextDrawColor(Kamera[21], -1);
  292.     TextDrawSetOutline(Kamera[21], 0);
  293.     TextDrawSetProportional(Kamera[21], 1);
  294.     TextDrawSetShadow(Kamera[21], 1);
  295.     TextDrawUseBox(Kamera[21], 1);
  296.     TextDrawBoxColor(Kamera[21], 180881970);
  297.     TextDrawTextSize(Kamera[21], 640.000000, 0.000000);
  298.  
  299.     Kamera[22] = TextDrawCreate(0.000000, 440.000000, "_");
  300.     TextDrawBackgroundColor(Kamera[22], 255);
  301.     TextDrawFont(Kamera[22], 1);
  302.     TextDrawLetterSize(Kamera[22], 0.500000, PASKI);
  303.     TextDrawColor(Kamera[22], -1);
  304.     TextDrawSetOutline(Kamera[22], 0);
  305.     TextDrawSetProportional(Kamera[22], 1);
  306.     TextDrawSetShadow(Kamera[22], 1);
  307.     TextDrawUseBox(Kamera[22], 1);
  308.     TextDrawBoxColor(Kamera[22], 180881970);
  309.     TextDrawTextSize(Kamera[22], 640.000000, 0.000000);
  310.  
  311.     return 1;
  312. }
  313.  
  314. public OnPlayerRequestClass(playerid, classid)
  315. {
  316.     if(!GetPVarInt(playerid, "NO_SPAWN"))
  317.     {
  318.         SetPVarInt(playerid, "NO_SPAWN", true);
  319.         //F4
  320.     }
  321.     if(!GetPVarInt(playerid, "WYBIER"))
  322.     {
  323.         for(new i; i < 23; i++)
  324.             TextDrawShowForPlayer(playerid, Kamera[i]);
  325.  
  326.         SetTimerEx("CameraUpdate", 500, 0, "d", playerid);
  327.         SetPVarInt(playerid, "WYBIER", true);
  328.         SetPlayerCameraLookAt(playerid, CLATX, CLATY, CLATZ);
  329.     }
  330.     SetPlayerPos(playerid, 268.7555,1884.3098,-30.0938);
  331.     SetPlayerFacingAngle(playerid, 180.0);
  332.     SetPlayerCameraPos(playerid, 268.7555,1877.9337,-27.0);
  333.     return 1;
  334. }
  335.  
  336. public OnPlayerRequestSpawn(playerid)
  337. {
  338.     DeletePVar(playerid, "WYBIER");
  339.     return 1;
  340. }
  341.  
  342. public OnPlayerConnect(playerid)
  343. {
  344.     SetPVarInt(playerid, "NO_SPAWN", true);
  345.     cpPlayer[playerid] = CLATX;
  346.     return 1;
  347. }
  348.  
  349. public OnPlayerSpawn(playerid)
  350. {
  351.     if(GetPVarInt(playerid, "NO_SPAWN"))
  352.     {
  353.         for(new i; i < 23; i++)
  354.             TextDrawHideForPlayer(playerid, Kamera[i]);
  355.  
  356.         SetCameraBehindPlayer(playerid);
  357.         DeletePVar(playerid, "NO_SPAWN");
  358.    }
  359.    
  360.     return 1;
  361. }
  362.  
  363.  
  364.  
  365. forward CameraUpdate(playerid, wait);
  366. public CameraUpdate(playerid, wait)
  367. {
  368.     if(!GetPVarInt(playerid, "NO_SPAWN"))
  369.         return;
  370.     new Float:ang, z = 0;
  371.     GetPlayerFacingAngle(playerid, ang);
  372.     if(wait > 0)
  373.     {
  374.         if(wait + 1 == 50)
  375.         {
  376.             SetTimerEx("CameraUpdate", 500, 0, "dd", playerid, -1);
  377.             return;
  378.         }
  379.         z = 1;
  380.     }
  381.     else if(wait == 0)
  382.     {
  383.         cpPlayer[playerid] += 0.03;
  384.         if(cpPlayer[playerid] >= (CLATX + RINC))
  385.             z = 1;
  386.     }
  387.     else if(wait == -1)
  388.     {
  389.         cpPlayer[playerid] -= 0.03;
  390.         if(cpPlayer[playerid] <= (CLATX - RINC))
  391.             z = -1;
  392.     }
  393.     else if(wait < -1)
  394.     {
  395.         if(wait - 1 ==  -60)
  396.         {
  397.             SetTimerEx("CameraUpdate", 50, 0, "dd", playerid, 0);
  398.             return;
  399.         }
  400.         z = -1;
  401.     }
  402.     SetPlayerCameraLookAt(playerid, cpPlayer[playerid], CLATY, CLATZ);
  403.     SetTimerEx("CameraUpdate", 50, 0, "dd", playerid, wait + z);
  404. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement