12.07.2009, 12:49
pawn Код:
if(strcmp(cmd, "/pos", true) == 0)
{
new Float: X;
new Float: Y;
new Float: Z;
new Float: Angle;
new Int;
new World;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Angle);
Int = GetPlayerInterior(playerid);
World = GetPlayerVirtualWorld(playerid);
format(string, sizeof(string), "X: %.4f, Y: %.4f, Z: %.4f, Angle: %.4f", X, Y, Z, Angle);
SendClientMessage(playerid, 0xFFFFFFAA, string);
format(string, sizeof(string), "Interior: %d, Virtual World: %d",Int, World);
SendClientMessage(playerid, 0xFFFFFFAA, string);
return 1;
}