18.12.2009, 17:32
/WhereAmI
Gives your location/coordinates X Y Z and facing angle
it also display them in the host console
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;
}

