Advertisement
Guest User

TS Commands Guide

a guest
Mar 11th, 2018
2,927
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. //Open the pawno.exe from within your TS folder->pawno, and then open the bare.pwn gamemode from the gamemodes folder.
  2. //Paste the lines bellow under the '#include <a_samp>'
  3. #include <YSI\y_commands>
  4. #include <YSI\y_master>
  5. #include <sscanf2>
  6.  
  7. //Paste this lines at the end of the script
  8. CMD:gotoxyz(playerid,params[])
  9. {
  10. if(IsPlayerConnected(playerid))
  11. {
  12. new Float:posx,Float:posy,Float:posz, inte;
  13. if(sscanf(params,"fffi",posx,posy,posz,inte))return SendClientMessage(playerid,-1,"* Tyope: /gotoxyz [posx][posy][posz][int]");
  14. {
  15. SetPlayerPos(playerid,posx,posy,posz);
  16. SetPlayerInterior(playerid,inte);
  17. GameTextForPlayer(playerid,"~w~You got~y~teleported",5000,4);
  18. }
  19. }
  20. return 1;
  21. }
  22.  
  23. CMD:setint(playerid,params[])
  24. {
  25. new intid;
  26. if(sscanf(params,"d",intid))return SendClientMessage(playerid,-1,"Type: /setint [interiorid]");
  27. SetPlayerInterior(playerid,intid);
  28. return 1;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement