18.12.2009, 20:53
Quote:
|
Originally Posted by [KMA
Lord_Deji ]
/WhereAmI Gives your location/coordinates X Y Z and facing angle it also display them in the host console (oops old code for lines) edited Код:
if(strcmp(cmdtext, "/whereami", true) == 0 && IsPlayerAdmin(playerid))
{
new Float:px, Float:py, Float:pz;
new Float:A;
GetPlayerPos(playerid, px, py, pz);
GetPlayerFacingAngle(playerid, A);
new wherestringx[30];
new wherestringy[30];
new wherestringz[30];
new wherestringA[30];
format(wherestringx,sizeof(wherestringx),"** Position: X: %f **", px);
format(wherestringy,sizeof(wherestringy),"** Position: Y: %f **", py);
format(wherestringz,sizeof(wherestringz),"** Position: Z: %f **", pz);
format(wherestringA,sizeof(wherestringA),"** FacingAngle: %f **", A);
SendClientMessage(playerid, COLOR_WHITE, "Your Coordinate are also display in host console");
SendClientMessage(playerid, COLOR_WHITE, wherestringx);
SendClientMessage(playerid, COLOR_WHITE, wherestringy);
SendClientMessage(playerid, COLOR_WHITE, wherestringz);
SendClientMessage(playerid, COLOR_WHITE, wherestringA);
print(wherestringx);
print(wherestringy);
print(wherestringz);
print(wherestringA);
return 1;
}
|

