Mapping thing
#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


Messages In This Thread
Small mapping question !!! - by Alexander8 - 31.10.2013, 20:24
Re: Mapping thing - by Alexander8 - 01.11.2013, 09:48
Re: Mapping thing - by MaxTheMapper - 01.11.2013, 09:51
Re: Mapping thing - by RowdyrideR - 01.11.2013, 09:52
Re: Mapping thing - by Astralis - 01.11.2013, 11:03
Re: Mapping thing - by Alexander8 - 01.11.2013, 14:36

Forum Jump:


Users browsing this thread: 2 Guest(s)