04.08.2011, 03:19
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/getpos", cmdtext, true, 10) == 0)
{
new StrGetPos[150], Float:X, Float:Z, Float:Y;
GetPlayerPos(playerid, X, Y, Z);
format(StrGetPos, sizeof(StrGetPos),"Your Current Position: {0080FF}%f, %f, %f,", X, Y, Z);
SendClientMessage(playerid, COLOR_WHITE, StrGetPos);
return 1;
}
return 0;
}