if(newkeys == KEY_UP)
public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz){if(response == EDIT_RESPONSE_FINAL){ new string[56]; getdate(ev,honap,nap);gettime(ora,perc,masodperc);format(string,sizeof(string),\"%d-%d-%d_%d:%d:%d\",ev,honap,nap,ora,perc,masodperc); new objid = UjObjectID(); ObjectInfo[objid][ObjVan] = 1; ObjectInfo[objid][ObjModel] = objectid; ObjectInfo[objid][ObjPosX] = x; ObjectInfo[objid][ObjPosY] = y; ObjectInfo[objid][ObjPosZ] = z; ObjectInfo[objid][ObjRotRX] = rx; ObjectInfo[objid][ObjRotRY] = ry; ObjectInfo[objid][ObjRotRZ] = rz; ObjectInfo[objid][ObjDatum] = string; ObjectInfo[objid][ObjKeszitette] = pname(playerid); new file[32];format(file,sizeof(file),\"/Objektek/%d.ini\",objid);if(!fexist(file)){ dini_Create(file); dini_IntSet(file,\"ObjVan\",1); dini_IntSet(file,\"ObjModel\",objectid); dini_FloatSet(file,\"ObjPosX\",ObjectInfo[objid][ObjPosX]); dini_FloatSet(file,\"ObjPosY\",ObjectInfo[objid][ObjPosY]); dini_FloatSet(file,\"ObjPosZ\",ObjectInfo[objid][ObjPosZ]); dini_FloatSet(file,\"ObjRotRX\",ObjectInfo[objid][ObjRotRX]); dini_FloatSet(file,\"ObjRotRY\",ObjectInfo[objid][ObjRotRY]); dini_FloatSet(file,\"ObjRotRZ\",ObjectInfo[objid][ObjRotRZ]); dini_Set(file,\"ObjDatum\",ObjectInfo[objid][ObjDatum]); dini_Set(file,\"ObjKeszitette\",pname(playerid));}}}
native EditDynamicObject(playerid, objectid);
CMD:obj(playerid,params[]){ if(IsPlayerConnected(playerid)){if(PlayerInfo[playerid][Admin] >= 4){ new parameter[64]; if(sscanf(params, \"s[64]{}\",parameter)) return SCM(playerid,WHITE,\"(( Használat: /obj(ect) [tipus] [id] ))\"), SCM(playerid,WHITE,\"(( Típusok: uj, torol ))\"); { if(egyezik(parameter,\"uj\")) { new obj,Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); if(sscanf(params,\"{s[64]}d\",obj)) return SCM(playerid,WHITE,\"(( Használat: /obj(ect) [uj] [objektid] ))\"); { new objid = CreateDynamicObject(obj,x,y+5,z+1,0,0,0); EditDynamicObject(playerid,objid); } } else if(egyezik(parameter,\"torol\")) { new delid; if(sscanf(params,\"{s[64]}d\",delid)) return SCM(playerid,WHITE,\"(( Használat: /obj(ect) [torol] [id] ))\"); { new file[32]; format(file,sizeof(file),\"/Objektek/%d.ini\",delid); if(fexist(file)) { dini_Remove(file); SFM(playerid,GREEN,\"(( Töröltél egy objektet! [%d] ))\",delid); return 1; } if(!fexist(file)) { SCM(playerid,ORANGE,\"(( Nincs ilyen objekt! ))\"); return 1; } } } }}}return 1;}
if(sscanf(params,\"{s[64]}d\",obj)) return SCM(playerid,WHITE,\"(( Használat: /obj(ect) [uj] [objektid] ))\");if(sscanf(params,\"{s[64]}d\",delid)) return SCM(playerid,WHITE,\"(( Használat: /obj(ect) [torol] [id] ))\");
if(sscanf(params,\"d\",obj)) return SCM(playerid,WHITE,\"(( Használat: /obj(ect) [uj] [objektid] ))\");if(sscanf(params,\"d\",delid)) return SCM(playerid,WHITE,\"(( Használat: /obj(ect) [torol] [id] ))\");