Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.56 KB | None | 0 0
  1. dcmd_getvel(playerid, input[])
  2. {
  3.     new Float:Velocity[3], string[120];
  4.     if(sscanf(input, "u", id)) return SendClientMessage(playerid, color_red, "/getvel [id]");
  5.     GetPlayerVelocity(id, Velocity[0], Velocity[1], Velocity[2]);
  6.     format(string, sizeof(string), "Debug: Players velocity: %f, Y: %f, Z: %f", Velocity[0], Velocity[1], Velocity[2]);
  7.     SendClientMessage(playerid, color_red, string);
  8.     format(string, sizeof(string), "Debug: Your velocity: %f, Y: %f, Z: %f", Velocity[0], Velocity[1], Velocity[2]);
  9.     SendClientMessage(id, color_red, string);
  10.     return 1;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement