Posts: 303
Threads: 71
Joined: Mar 2011
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!
Posts: 673
Threads: 45
Joined: May 2010
Reputation:
0
just search.
there are alot of ingame editors
Posts: 10
Threads: 4
Joined: Dec 2011
Reputation:
0
And I have to put a fence with a command, if you can give a link?
Posts: 10
Threads: 4
Joined: Dec 2011
Reputation:
0
I can not find, can you link?
Posts: 19
Threads: 0
Joined: Mar 2015
Lol,it hard to make script like that.
Posts: 165
Threads: 29
Joined: Mar 2015
Reputation:
0
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;
}