SA:MP Map Editor - Edit San Andreas yourself in the game.
- Look at examples below.
- There are only few functions though. But really important for the system to work, also are really efficient in commands.
- Shows player a dialog with map editor options.
@command(.type = SLASH_COMMAND) mapeditor(playerid, params[])
{
ShowMapEditorMenuToPlayer(playerid);
return 1;
}
- Used to show everyone on the server, in the specified virtual world, object info labels. They contain info about object's ID, object's rotation offset and object's x, y and z coordinates!
@command(.type = SLASH_COMMAND) labelon(playerid, params[])
{
ShowObjectInfoLabels(GetPlayerVirtualWorld(playerid));
return 1;
}
- Used to hide object info labels.
@command(.type = SLASH_COMMAND) labeloff(playerid, params[])
{
HideObjectInfoLabels();
return 1;
}
- No warnings yet.
- This is in beta stage, please, if you find any issues - report them.
- In order to save your work properly, in your server's scriptfiles folder, you need to make another folder called detutils_objects. In that folder, -.ini files with object information and data are saved. Besides that note, you don't need to worry about anything else - objects are automatically loaded and saved.