SA-MP Forums Archive
In-Game Editor? - 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: In-Game Editor? (/showthread.php?tid=316269)



In-Game Editor? - TheMightyEddy - 06.02.2012

So is there an in-game object editor?

For example if my admins or me want to make an event, can I spawn objects in-game while everyone else is playing and move them to different places?

If there is a mod for like, please link me to it. Thanks!


AW: In-Game Editor? - Tigerkiller - 06.02.2012

just search.
there are alot of ingame editors


Re: In-Game Editor? - D3m0H - 06.02.2012

And I have to put a fence with a command, if you can give a link?


Re: In-Game Editor? - T0pAz - 06.02.2012

Quote:
Originally Posted by D3m0H
View Post
And I have to put a fence with a command, if you can give a link?
Use the SEARCH feature provided by SA-MP Forum.


Re: In-Game Editor? - D3m0H - 06.02.2012

I can not find, can you link?


Re: In-Game Editor? - Konstantinos - 06.02.2012

Here!
Or it's not easy for you even choose one of them..


Re: In-Game Editor? - EncikBuyer - 17.08.2015

Lol,it hard to make script like that.


Re: In-Game Editor? - ZToPMaN - 17.08.2015

try this :
///////////////////////////INCLUDES
#include <a_samp>
#include <sscanf>
#include <zcmd>
////News
new id, Float:X, Float:Y, Float:Z, Float:A;
///////////////////////////////Commands
CMD:cobject(playerid,params[]) ///To creat the object.
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1," You arenot admin to use this command. ");
if(sscanf(params, "i",id)) return SendClientMessage(playerid, -1,"Usage: /Object <id of the object>");
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, A);
CreateObject(id, X+2, Y+2, Z, 0.0, 0.0, A);
return 1;
}

CMD:eobject(playerid,params[]) ///To edit object.
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1," You arenot admin to use this command. ");
if(sscanf(params, "i",id)) return SendClientMessage(playerid, -1,"Usage: /editobject <id>");
if(!IsValidObject(id)) return SendClientMessage(playerid,-1, "Error: Invalid object!");
GetObjectPos(id,X,Y,Z);
if(!IsPlayerInRangeOfPoint(playerid, 20.0,X,Y,Z)) return SendClientMessage(playerid,-1, "Error: You must go close of the object. try /gotoobject");
EditObject(playerid, id);
return 1;
}