Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dcmd_getvel(playerid, input[])
- {
- new Float:Velocity[3], string[120];
- if(sscanf(input, "u", id)) return SendClientMessage(playerid, color_red, "/getvel [id]");
- GetPlayerVelocity(id, Velocity[0], Velocity[1], Velocity[2]);
- format(string, sizeof(string), "Debug: Players velocity: %f, Y: %f, Z: %f", Velocity[0], Velocity[1], Velocity[2]);
- SendClientMessage(playerid, color_red, string);
- format(string, sizeof(string), "Debug: Your velocity: %f, Y: %f, Z: %f", Velocity[0], Velocity[1], Velocity[2]);
- SendClientMessage(id, color_red, string);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement