Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1.  
  2. public OnPlayerCommandText(playerid, cmdtext[])
  3. {
  4. #define COLOR_ORANGE 0xFF8C00AA
  5. new Float:X,Float:Y,Float:Z;
  6. new string[256];
  7.  
  8.  
  9. if (strcmp("/skatepark", cmdtext, true, 10) == 0)
  10. {
  11. /* if(IsPlayerInAnyVehicle(playerid))
  12. {
  13. SetVehiclePos(GetPlayerVehicleID(playerid), 1968.6437,-1429.6891,13.1075);
  14. }
  15. else
  16. {
  17. */
  18.  
  19. GetPlayerPos(playerid, X,Y,Z);
  20.  
  21. SetPlayerInterior(playerid,0);
  22. SetPlayerPos(playerid,1968.6437,-1429.6891,13.1075);
  23. SetPlayerFacingAngle(playerid,167.7274);
  24.  
  25. new pname[MAX_PLAYER_NAME];
  26. GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  27. format(string, sizeof(string), "** %s teleportet to /skatepark [COST: 500$]", pname);
  28. SendClientMessageToAll(COLOR_ORANGE, string);
  29.  
  30. format(string, sizeof(string), "** %f %f %f teleportet to /skatepark [COST: 500$]", X-1968.6437, Y-1429.6891, Z-13.1075);
  31. SendClientMessage(playerid, COLOR_ORANGE,string);
  32.  
  33.  
  34.  
  35.  
  36. GivePlayerMoney(playerid, -500);
  37. return 1;
  38. }
  39.  
  40. return 0;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement