Advertisement
Guest User

Untitled

a guest
Mar 10th, 2011
703
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. //-----------------------//
  2. //-----All Created by----//
  3. //------Ionutz--------//
  4. //-----------------------//
  5.  
  6.  
  7. #include <a_samp>
  8.  
  9. new Surf;
  10.  
  11. public OnFilterScriptInit()
  12. {
  13. print("\n-------------------------------------------");
  14. print(" <<----Surfing Script Made By Ionutz>>---");
  15. print("-------------------------------------------\n");
  16.  
  17. Surf = CreateObject(2404, 2917.890625, -2017.454346, 0.299380, 269.7591, 359.1406, 270.0000);
  18. return 1;
  19. }
  20.  
  21. public OnPlayerCommandText(playerid, cmdtext[])
  22. {
  23. if (strcmp("/surfgo", cmdtext, true, 10) == 0)
  24. {
  25. if(IsPlayerInRangeOfPoint(playerid, 2, 2917.890625, -2017.454346, 0.299380))
  26. {
  27. MoveObject(Surf, 3205.692139, -2010.471436, 0.275790, 4);
  28. SendClientMessage(playerid, 0xFFFFFF, "You're Surfing Now!");
  29. SetPlayerPos(playerid,2917.7495,-2017.4622,1.3852);
  30. SetPlayerFacingAngle(playerid,190.0524);
  31. SetPlayerInterior(playerid,0);
  32. ApplyAnimation(playerid,"BSKTBALL","BBALL_def_loop",4.0,1,0,0,0,0);
  33.  
  34. }
  35. return 1;
  36. }
  37. if (strcmp("/surfback", cmdtext, true, 10) == 0)
  38. {
  39. MoveObject(Surf, 2917.890625, -2017.454346, 0.299380, 4);
  40. SendClientMessage(playerid, 0xFFFFFF, "You're Surfing Backward Now!");
  41. }
  42. return 1;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement