SA-MP Forums Archive
Mapping thing - 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: Mapping thing (/showthread.php?tid=472971)



Small mapping question !!! - Alexander8 - 31.10.2013

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


Re: Mapping thing - Alexander8 - 01.11.2013

anyone help ?


Re: Mapping thing - MaxTheMapper - 01.11.2013

Can u show the /createobj code?


Re: Mapping thing - RowdyrideR - 01.11.2013

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

https://sampwiki.blast.hk/wiki/CreatePlayerObject


Re: Mapping thing - Astralis - 01.11.2013

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.


Re: Mapping thing - Alexander8 - 01.11.2013

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