Coordinates!
#3

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);
}
Reply


Messages In This Thread
Coordinates! - by Simmeey - 30.03.2009, 12:16
Re: Coordinates! - by LarzI - 30.03.2009, 12:21
Re: Coordinates! - by illay - 30.03.2009, 18:44

Forum Jump:


Users browsing this thread: 1 Guest(s)