daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Jan 12th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <a_samp>
  2. new Opcja[250];
  3.  
  4. forward OdblokujSkok(p);
  5. public OdblokujSkok(p)
  6. {
  7.     Opcja[p]=11;
  8.     return 1;
  9. }
  10.  
  11. public OnFilterScriptInit()
  12. {
  13.     print("\n");
  14.     print("* Player Cheats by Pr0f3ssi0n4LisT loaded...\n");
  15.     return 1;
  16. }
  17.  
  18. public OnPlayerConnect(playerid)
  19. {
  20.     Opcja[playerid]=0;
  21.     return 1;
  22. }
  23.  
  24. public OnPlayerDisconnect(playerid, reason)
  25. {
  26.     Opcja[playerid]=0;
  27.     return 1;
  28. }
  29.  
  30. public OnPlayerCommandText(playerid, cmdtext[])
  31. {
  32.     if(!strcmp(cmdtext, "/cheats", true)) {
  33.         new listitems[] = "1\tPodskakiwanie\n2\tTurbo\n3\tStopniowe zwalnianie\n4\tNatychmiastowy stop\n5\tObrot o 180 stopni\n6\tObrot o 90 stopni\n7\tZmiana koloru pojazdu\n8\tSpeed tylko w przod\n9\tSpeed tylko w tyl\n10\tAuto Flip\n11\tMega Jump\n12\tWylacz czity";
  34.         ShowPlayerDialog(playerid,4564123,DIALOG_STYLE_LIST,"Dostepne Opcje:",listitems,"Wybierz","Anuluj");
  35.         return 1;
  36.     }
  37.     return 0;
  38. }
  39. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  40. {
  41.     if((newkeys & 2) && (Opcja[playerid] > 0 && Opcja[playerid] <= 10) && (!GetPlayerVehicleSeat(playerid))) {
  42.         switch(Opcja[playerid]) {
  43.             case 1: {
  44.                 // podskakiwanie
  45.                 new Float:X[3];
  46.                 GetVehicleVelocity(GetPlayerVehicleID(playerid), X[0],X[1],X[2]);
  47.                 SetVehicleVelocity(GetPlayerVehicleID(playerid), X[0],X[1],X[2]+0.1);
  48.             }
  49.             case 2: {
  50.                 // turbo
  51.                 new Float:Y[3];
  52.                 GetVehicleVelocity(GetPlayerVehicleID(playerid), Y[0], Y[1], Y[2]);
  53.                 SetVehicleVelocity(GetPlayerVehicleID(playerid), Y[0]*1.3, Y[1]*1.3, Y[2]*1.3);
  54.             }
  55.             case 3: {
  56.                 // stopniowe zwalnianie
  57.                 new Float:Z[3];
  58.                 GetVehicleVelocity(GetPlayerVehicleID(playerid), Z[0], Z[1], Z[2]);
  59.                 SetVehicleVelocity(GetPlayerVehicleID(playerid), Z[0]/1.3, Z[1]/1.3, Z[2]/1.3);
  60.             }
  61.             case 4: {
  62.                 // natychamiastowy stop
  63.                 SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.0,0.0,0.0);
  64.             }
  65.             case 5: {
  66.                 // obrot o 180
  67.                 new Float:Pos;
  68.                 GetVehicleZAngle(GetPlayerVehicleID(playerid),Pos);
  69.                 SetVehicleZAngle(GetPlayerVehicleID(playerid),Pos+180.0);
  70.                 SetCameraBehindPlayer(playerid);
  71.             }
  72.             case 6: {
  73.                 // obrot o 90
  74.                 new Float:Poz;
  75.                 GetVehicleZAngle(GetPlayerVehicleID(playerid),Poz);
  76.                 SetVehicleZAngle(GetPlayerVehicleID(playerid),Poz+90.0);
  77.                 SetCameraBehindPlayer(playerid);
  78.             }
  79.             case 7: {
  80.                 // przemalowywanie
  81.                 ChangeVehicleColor(GetPlayerVehicleID(playerid),random(127),random(127));
  82.             }
  83.             case 8: {
  84.                 // tylko w przod
  85.                 new Float:A[4];
  86.                 GetVehicleVelocity(GetPlayerVehicleID(playerid), A[0], A[1], A[2]);
  87.                 GetVehicleZAngle(GetPlayerVehicleID(playerid),A[3]);
  88.                 A[0] += (0.1 * floatsin(-A[3], degrees));
  89.                 A[1] += (0.1 * floatcos(-A[3], degrees));
  90.                 SetVehicleVelocity(GetPlayerVehicleID(playerid), A[0], A[1], 0.0);
  91.             }
  92.             case 9: {
  93.                 //tylko w tyl
  94.                 new Float:B[4];
  95.                 GetVehicleVelocity(GetPlayerVehicleID(playerid), B[0], B[1], B[2]);
  96.                 GetVehicleZAngle(GetPlayerVehicleID(playerid),B[3]);
  97.                 B[0] -= (0.1 * floatsin(-B[3], degrees));
  98.                 B[1] -= (0.1 * floatcos(-B[3], degrees));
  99.                 SetVehicleVelocity(GetPlayerVehicleID(playerid), B[0], B[1], 0.0);
  100.             }
  101.             case 10: {
  102.                 new Float:a;
  103.                 GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
  104.                 SetVehicleZAngle(GetPlayerVehicleID(playerid), a);
  105.             }
  106.         }
  107.     }
  108.     if((newkeys &= 32) && (Opcja[playerid]==11)) {
  109.         new Float:A[4];
  110.         Opcja[playerid]=-1;
  111.         GetPlayerVelocity(playerid, A[0], A[1], A[2]);
  112.         GetPlayerFacingAngle(playerid,A[3]);
  113.         A[0] += (0.1 * floatsin(-A[3], degrees));
  114.         A[1] += (0.1 * floatcos(-A[3], degrees));
  115.         SetPlayerVelocity(playerid, A[0], A[1], 2.2);
  116.         SetTimerEx("OdblokujSkok",1900,false,"d",playerid);
  117.     }
  118.     return 1;
  119. }
  120.  
  121. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  122. {
  123.     if(dialogid == 4564123) {
  124.         if(response) {
  125.             new txt[128];
  126.             if(listitem <= 9) {
  127.                 format(txt, 128, "Wybrano opcje: %s, nacisnij klakson zeby wlaczyc.",inputtext[2]);
  128.                 SendClientMessage(playerid, 0xFFFF00AA, txt);
  129.                 Opcja[playerid] = listitem+1;
  130.             }else if(listitem == 10) {
  131.                 Opcja[playerid]=listitem+1;
  132.                 format(txt, 128, "Wybrano opcje: %s, nacisnij klawisz skoku zeby wlaczyc.",inputtext[3]);
  133.                 SendClientMessage(playerid, 0xFFFF00AA, txt);
  134.             }else{
  135.                 Opcja[playerid]=0;
  136.                 SendClientMessage(playerid, 0xFFFF00AA, "Czity wylaczone pomyslnie.");
  137.             }
  138.         }else SendClientMessage(playerid, 0xFFFFFFFF, "* Wybieranie Anulowane.");
  139.         return 1;
  140.     }
  141.     return 0;
  142. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top