GoToPoint: Help?
#2

Like this? using zcmd and sscanf
pawn Код:
COMMAND:gotopos(playerid, params[])
{
    new Float:PosX, Float:PosY, Float:PosZ;
    if(sscanf(params, "fff", PosX, PosY, PosZ)) return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /gotopos (x) (y) (z)");
    {
        new string[128];
        format(string, sizeof(string), "You have teleported to X: %f Y: %f Z: %f", , PosX, PosY, PosZ);
        SendClientMessage(playerid, 0xFFFFFFAA, string);
        SetPlayerPos(playerid, PosX, PosY, PosZ);
    }
    return 1;
}
Reply


Messages In This Thread
GoToPoint: Help? - by Dokins - 07.05.2011, 14:46
Re: GoToPoint: Help? - by Laronic - 07.05.2011, 14:50
Re: GoToPoint: Help? - by randomkid88 - 07.05.2011, 14:50
Re: GoToPoint: Help? - by Dokins - 07.05.2011, 15:15

Forum Jump:


Users browsing this thread: 2 Guest(s)