30.03.2009, 18:44
Simmeey,
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/getpos", cmdtext, true, 10) == 0)
{
GetPos(playerid);
return 1;
}
return 0;
}
stock GetPos(playerid) { //by illay
new Float:x,Float:y,Float:z,Float:a;
GetPlayerPos(playerid);
new string[200];
format(string,sizeof(string),"Pos: x:%.3f,y:%.3f,z:%.3f,a:%.3f",x,y,z,a);
return SendClientMessage(playerid,COLOR,string);
}

