Guest User

Untitled

a guest
Jun 6th, 2016
456
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3. #define DIALOG_WELCOME 2
  4. new zicara;
  5.  
  6. public OnFilterScriptInit()
  7. {
  8. print("\n--------------------------------------");
  9. print(" Zicara ");
  10. print("--------------------------------------\n");
  11.  
  12. zicara = CreateObject(5837, -2268.76880, -1683.33032, 481.69861, 0.00000, 0.00000, 200.79498);
  13. new attobject1 = CreateObject(7568,0,0,-1000,0,0,0);
  14. AttachObjectToObject(attobject1,zicara,-7.470076,-0.130000,3.479997,-0.499999,-1.789999,-0.069999);
  15. return 1;
  16. }
  17.  
  18.  
  19. CMD:zicara(playerid, params[])
  20. {
  21. SetPlayerPos(playerid, -2269.7214, -1692.6377, 482.7216);
  22. SendClientMessage(playerid, -1, "Portan si do zicare. Za komande pisi /komande");
  23. return 1;
  24. }
  25.  
  26. CMD:kreni(playerid, params[])
  27. {
  28. MoveObject(zicara, -2268.76880, -1683.33032, 481.69861, 10);
  29. MoveObject(zicara, -1601.4666, -1575.8234, 36.0752, 10);
  30. SendClientMessage(playerid, -1, "Zicara se krece,stanite na miru.");
  31. return 1;
  32. }
  33.  
  34. CMD:vrati(playerid, params[])
  35. {
  36. MoveObject(zicara, -1601.4666, -1575.8234, 36.0752, 10);
  37. MoveObject(zicara, -2268.76880, -1683.33032, 481.69861, 10);
  38. SendClientMessage(playerid, -1, "Zicara se vraca,stanite na miru.");
  39. return 1;
  40. }
  41.  
  42. CMD:stop(playerid, params[])
  43. {
  44. StopObject(zicara);
  45. SendClientMessage(playerid, -1, "Zaustavio si zicaru,pisi /padobran ako zelis skociti");
  46. return 1;
  47. }
  48.  
  49. CMD:padobran(playerid, params[])
  50. {
  51. GivePlayerWeapon(playerid, 46, 1);
  52. SendClientMessage(playerid, -1, "Uzeo si padobran,prije nego sto skocis,pisi /vrati,da vratis zicaru");
  53. return 1;
  54. }
  55.  
  56. CMD:komande(playerid, params[])
  57. {
  58. ShowPlayerDialog(playerid, DIALOG_WELCOME, DIALOG_STYLE_MSGBOX, "KOMANDE", "/zicara /kreni /stop /padobran /komande /vrati", "Ok", "");
  59. return 1;
  60. }
Advertisement
Add Comment
Please, Sign In to add comment