little help
#6

You clearly do not know how to use SetPlayerPos.

Quote:

Parameters:
(playerid,Float,Float:y,Float:z)

Try this:
pawn Код:
CMD:findbot(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
        for(new b=0; b<MAX_PLAYERS; b++)
        {
            if(IsPlayerNPC(b))
            {
                new Float:X,Float:Y,Float:Z;
                GetPlayerPos(b, X, Y, Z);
            }
        }
        SetPlayerPos(i, X, Y, Z);
        SendClientMessage(i, -1, "You arrived successfully");
        return 1;
    }
    else return SendClientMessage(playerid, -1, "You are not authorized to use that command!");
}
Reply


Messages In This Thread
little help - by Youice - 30.04.2012, 11:22
Re: little help - by Youice - 30.04.2012, 11:48
Re: little help - by Jack_Leslie - 30.04.2012, 11:49
Re: little help - by Youice - 30.04.2012, 11:54
Re: little help - by Mean - 30.04.2012, 11:58
Re: little help - by Jack_Leslie - 30.04.2012, 12:00
Re: little help - by Youice - 30.04.2012, 12:05
Re: little help - by Jack_Leslie - 30.04.2012, 12:08
Re: little help - by Mean - 30.04.2012, 12:09
Re: little help - by Jack_Leslie - 30.04.2012, 12:11

Forum Jump:


Users browsing this thread: 1 Guest(s)