Guest User

Ped_Dep's simple sync system.

a guest
Jan 8th, 2013
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <a_samp>
  2.  
  3. public OnFilterScriptInit()
  4. {
  5. print("\n-----------Ped_Dep's script----------"); //A simple script, but don't edit the script!
  6. print(" Simple Sync System\n");
  7. return 1;
  8. }
  9.  
  10. public OnFilterScriptExit()
  11. {
  12. print("\n-----------Ped_Dep's script----------"); //Don't remove the Credits! You can make your own script if you want to.
  13. print(" Simple Sync System");
  14. print(" --- Unloaded --- ");
  15. return 1;
  16. }
  17.  
  18. public OnPlayerCommandText(playerid, cmdtext[])
  19. {
  20. if (strcmp("/sync", cmdtext, true, 10) == 0)
  21. {
  22. new Float:X;
  23. new Float:Y;
  24. new Float:Z;
  25. TogglePlayerControllable(playerid,1);
  26. GetPlayerPos(playerid,X,Y,Z);
  27. SetPlayerPos(playerid,X,Y,Z+2);
  28. ClearAnimations(playerid);
  29. PlayerPlaySound(playerid, 1137, X, Y, Z);
  30. SendClientMessage(playerid,0x00FFFFFF,"You are synced.");
  31. return 1;
  32. }
  33. return 0;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment