Template:AR/Resource functions
Jump to navigation
Jump to search
هذي الوظيفه تقوم بنسخ المود
مثال
-- هدا امر يقوم بنسخ المود /backupresource [resourcename] function backupResource (player,command,resourcetobackup) if (resourcetobackup) and (getResourceFromName(resourcetobackup)) then copyResource (getResourceFromName(resourcetobackup),resourcetobackup .. "_backup") outputChatBox ("Resource " .. resourcetobackup .. " succesfully backed up!",player,255,0,0,false) else -- if it isn't exist outputChatBox ("Resource can't be backed up! (don't forget the parameters!)",player,255,0,0,false) end end addCommandHandler ("backupresource",backupResouce)