16.03.2014, 07:23
Could I have a gotoco cmd in Zcmd??
/gotoco [x] [y] [z] [InteriorID]
Please
/gotoco [x] [y] [z] [InteriorID]
Please
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;
}
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;
}