18.12.2009, 19:07
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 Код:
if(strcmp(cmdtext, "/whereami", true) == 0 && IsPlayerAdmin(playerid)) { new Float:px, Float:py, Float:pz; GetPlayerPos(playerid, px, py, pz); new wherestringx[30]; new wherestringy[30]; new wherestringz[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); 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); print(wherestringx); print(wherestringy); print(wherestringz); return 1; } |
pawn Код:
if(strcmp(cmdtext, "/whereami", true) == 0 && IsPlayerAdmin(playerid))
{
new Float:px, Float:py, Float:pz, wherestringxyz[100];
GetPlayerPos(playerid, px, py, pz);
format(wherestringxyz,sizeof(wherestringxyz),"** Position X: %f Position Y: %f Position Z: %f **", px, py, pz);
SendClientMessage(playerid, COLOR_WHITE, wherestringxyz);
print(wherestringxyz);
return 1;
}