/gotoco urgent +repp - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /gotoco urgent +repp (
/showthread.php?tid=501036)
/gotoco urgent +repp -
Mriss - 16.03.2014
Could I have a gotoco cmd in Zcmd??
/gotoco [x] [y] [z] [InteriorID]
Please
Re: /gotoco urgent +repp -
Stinged - 16.03.2014
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;
}
Re: /gotoco urgent +repp -
Mriss - 16.03.2014
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;
}