PDA

View Full Version : Mapping thing


Alexander8
31/10/2013, 08:24 PM
When i /createobj or gate there's a line formed on the object with the ID and the model , so i want to know how to hide this line or make the object not available for more editting
thanks
and sorry for my bad english cuz its not my main lang :)

Alexander8
01/11/2013, 09:48 AM
anyone help ?

MaxTheMapper
01/11/2013, 09:51 AM
Can u show the /createobj code?

RowdyrideR
01/11/2013, 09:52 AM
If you mean to show it for some specific players then:

http://wiki.sa-mp.com/wiki/CreatePlayerObject

Astralis
01/11/2013, 11:03 AM
If you mean to show it for some specific players then:

http://wiki.sa-mp.com/wiki/CreatePlayerObject

he means the command of /createobj.

Alexander8
01/11/2013, 02:36 PM
Alright i fixed it so no one can see this Text on the object but when i start editing its position and click on the save icon the label apears again on it

CODe
CMD:editobj(playerid, params[])
{
new string[128], idx;
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(PlayerInfo[playerid][pMapper] < 1) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
if(!mDuty[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You are not on Mapper Duty.");
if(sscanf(params, "i", idx)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /editobj [objectid]");
if(!ObjInfo[idx][oModel]) return SendClientMessage(playerid, COLOR_GREY, "Invalid object id.");
oEdit[playerid] = 1;
oEditID[playerid] = idx;
GetDynamicObjectPos(ObjInfo[idx][obj], oPos[playerid][0], oPos[playerid][1], oPos[playerid][2]);
GetDynamicObjectRot(ObjInfo[idx][obj], oRot[playerid][0], oRot[playerid][1], oRot[playerid][2]);
EditDynamicObject(playerid, ObjInfo[idx][obj]);
format(string, sizeof(string), " You are now editing object ID %d's position.", idx);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "MapperWarn: %s is editting object ID %d's position.)", RPN(playerid), idx);
SendMapperMessage(COLOR_GREEN, 1, string);
return 1;
}