//... On command new Float:x, Float:y, Float:z; GetPlayerPos(playerid,x,y,z); // You can now use x,y, and z as the players position for SetPlayerPos,etc.
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new Float:x, Float:y, Float:z; GetPlayerPos(playerid,x,y,z);
CMD:pos(playerid,params[])
{
new Float:x, Float:y, Float:z, msg[254];
GetPlayerPos(playerid,x,y,z);
format(msg,sizeof(msg),"Your current pos: X:%d Y:%d Z:%d",x,y,z);
SendClientMessage(playerid,-1,msg);
return 1;
}
CMD:pos(playerid, params[])
{
new Message[200], Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
format(Message, sizeof(Message), "Location: X%4.2f, Y%4.2f, Z%4.2f", x, y, z);
SendClientMessage(playerid, 0xFFFFFFFF, Message);
return 1;
}
|
Sure.
Код:
CMD:pos(playerid,params[])
{
new Float:x, Float:y, Float:z, msg[254];
GetPlayerPos(playerid,x,y,z);
format(msg,sizeof(msg),"Your current pos: X:%d Y:%d Z:%d",x,y,z);
SendClientMessage(playerid,-1,msg);
return 1;
}
|

CMD:pos(playerid, params[])
{
new Message[200], Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
format(Message, sizeof(Message), "Location: X%4.2f, Y%4.2f, Z%4.2f", x, y, z);
SendClientMessage(playerid, 0xFFFFFFFF, Message);
return 1;
}