Mapping thing
#1

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
Reply
#2

anyone help ?
Reply
#3

Can u show the /createobj code?
Reply
#4

If you mean to show it for some specific players then:

https://sampwiki.blast.hk/wiki/CreatePlayerObject
Reply
#5

Quote:
Originally Posted by RowdyrideR
Посмотреть сообщение
If you mean to show it for some specific players then:

https://sampwiki.blast.hk/wiki/CreatePlayerObject
he means the command of /createobj.
Reply
#6

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;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)