/gotoco urgent +repp
#1

Could I have a gotoco cmd in Zcmd??


/gotoco [x] [y] [z] [InteriorID]

Please
Reply
#2

zcmd + sscanf
pawn Код:
CMD:gotoco(playerid, params[])
{
    new Float:x, Float:y, Float:z, intid;
    if(sscanf(params, "fffi", x, y, z, intid)) return SendClientMessage(playerid, 0x00FFFFFF, "Usage: /gotoco [x] [y] [z] [interior]");
    SetPlayerInterior(playerid, intid);
    SetPlayerPos(playerid, x, y, z);
    return 1;
}
Reply
#3

Well too late, I made one

Whoever needs the cmd its here>
pawn Код:
CMD:gotoco(playerid, params[])
{
    new Interior, Float: X, Float: Y, Float: Z;
    if( sscanf(params,"fffd",X,Y,Z,Interior))
    {
        SCM( playerid,-1, "USAGE: /gotoint [x point] [y point] [z point] [Interior ID]" );
    }
    else
    {
        SetPlayerPos( playerid, X, Y, Z );
        SetPlayerInterior( playerid, Interior );
        SCM( playerid,-1, "You have been teleported to the defined position !" );
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)