PetrickSP

PetrickPS - Bolsa Mochila Para Entrega De Pizzas

Mar 5th, 2016
781
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.26 KB | None | 0 0
  1. /**********************************************************/
  2. /* Faça bem o uso.... Agradeceria que ao utilizar, deixe os creditos! */
  3. /* PetrickPS (Petrick Schoba) | facebook.com.br/petrickschobaps
  4. /**********************************************************/
  5.  
  6. #include <a_samp>
  7. #include <zcmd>
  8.  
  9.  
  10. #define Bolsapizza_A 1 /* Mude os numeros para que não de futuros conflitos! */
  11. #define Bolsapizza_B 1 /* Mude os numeros para que não de futuros conflitos! */
  12. #define Bolsapizza_C 2 /* Mude os numeros para que não de futuros conflitos! */
  13. #define Bolsapizza_D 3 /* Mude os numeros para que não de futuros conflitos! */
  14. #define Bolsapizza_E 4 /* Mude os numeros para que não de futuros conflitos! */
  15. #define Bolsapizza_F 5 /* Mude os numeros para que não de futuros conflitos! */
  16.  
  17. public OnFilterScriptInit()
  18. {
  19.     print("\n Bolsa Mochila Para Entrega De Pizzas");
  20.     print("  by PetrickPS ou Petrick Schoba, 2016\n");
  21.     return 1;
  22. }
  23.  
  24. public OnPlayerConnect(playerid)
  25. {
  26.     RemovePlayerAttachedObject(playerid, Bolsapizza_A);
  27.     RemovePlayerAttachedObject(playerid, Bolsapizza_B);
  28.     RemovePlayerAttachedObject(playerid, Bolsapizza_C);
  29.     RemovePlayerAttachedObject(playerid, Bolsapizza_D);
  30.     RemovePlayerAttachedObject(playerid, Bolsapizza_E);
  31.     RemovePlayerAttachedObject(playerid, Bolsapizza_F);
  32.     return 1;
  33. }
  34.  
  35. public OnPlayerDisconnect(playerid, reason)
  36. {
  37.     RemovePlayerAttachedObject(playerid, Bolsapizza_A);
  38.     RemovePlayerAttachedObject(playerid, Bolsapizza_B);
  39.     RemovePlayerAttachedObject(playerid, Bolsapizza_C);
  40.     RemovePlayerAttachedObject(playerid, Bolsapizza_D);
  41.     RemovePlayerAttachedObject(playerid, Bolsapizza_E);
  42.     RemovePlayerAttachedObject(playerid, Bolsapizza_F);
  43.     return 1;
  44. }
  45.  
  46. public OnFilterScriptExit()
  47. {
  48.     return 1;
  49. }
  50.  
  51. command(usarbolsa, playerid, params[])
  52. {
  53.     SendClientMessage(playerid,-1,"Você colocou a sua bolsa térmica de pizza!");
  54.     SetPlayerAttachedObject( playerid, Bolsapizza_A, 3013, 1, 0.078680, -0.248644, -0.002953, 91.909584, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
  55.     SetPlayerAttachedObject( playerid, Bolsapizza_B, 2646, 1, 0.086640, -0.397700, -0.008889, 358.023590, 90.474876, 3.592580, 0.405206, 1.000000, 0.296924 );
  56.     SetPlayerAttachedObject( playerid, Bolsapizza_C, 2646, 1, 0.084201, -0.237669, -0.206462, 89.883003, 90.955894, 2.649234, 0.290883, 1.000000, 0.296924 );
  57.     SetPlayerAttachedObject( playerid, Bolsapizza_D, 2646, 1, 0.079883, -0.236244, 0.165972, 96.035140, 89.889701, 175.633255, 0.297265, 1.000000, 0.301659 );
  58.     SetPlayerAttachedObject( playerid, Bolsapizza_E, 2646, 1, 0.274271, -0.243103, -0.003109, 271.972991, 359.880371, 90.866378, 0.414633, 1.000000, 0.224851 );
  59.     SetPlayerAttachedObject( playerid, Bolsapizza_F, 2646, 1, -0.088884, -0.243103, -0.003109, 271.840881, 180.403060, 89.638572, 0.414633, 1.000000, 0.224851 );
  60.     return 1;
  61. }
  62.  
  63. command(guardarbolsa, playerid, params[])
  64. {
  65.     SendClientMessage(playerid,-1,"Você guardou a sua bolsa térmica de pizza!");
  66.     RemovePlayerAttachedObject(playerid, Bolsapizza_A);
  67.     RemovePlayerAttachedObject(playerid, Bolsapizza_B);
  68.     RemovePlayerAttachedObject(playerid, Bolsapizza_C);
  69.     RemovePlayerAttachedObject(playerid, Bolsapizza_D);
  70.     RemovePlayerAttachedObject(playerid, Bolsapizza_E);
  71.     RemovePlayerAttachedObject(playerid, Bolsapizza_F);
  72.     return 1;
  73. }
Advertisement
Add Comment
Please, Sign In to add comment