if(strcmp(choice, "interior", true) == 0)
{
GetPlayerPos(playerid, DDoorsInfo[doorid][ddInteriorX], DDoorsInfo[doorid][ddInteriorY], DDoorsInfo[doorid][ddInteriorZ]);
GetPlayerFacingAngle(playerid, DDoorsInfo[doorid][ddInteriorA]);
DDoorsInfo[doorid][ddInteriorInt] = GetPlayerInterior(playerid);
DDoorsInfo[doorid][ddInteriorVW] = GetPlayerVirtualWorld(playerid);
SendClientMessage(playerid, COLOR_WHITE, "You have changed the interior!");
SaveDynamicDoors();
format(string, sizeof(string), "%s has edited DoorID %d's Interior.", GetPlayerNameEx(playerid), doorid);
Log("logs/ddedit.log", string);
return 1;
}
http://weedarr.wikidot.com/interior
Search and Use function GetPlayerInterior(playerid); |