Problem with rMTA -
Andre02 - 20.08.2015
Hello everyone
My friend and i are working in a Multi-Mode server containing Race DM (DD/DM for MTA players)
So we need a map converter to convert all the maps we need, from .map (lua) to .pwn (pawn) with the velocities, spawnpoints, the nitro, repair & vehicle change pickups etc..
But we don't know how to, and + we need to learn the specific language to do so
But we found this, to start with:
https://sampforum.blast.hk/showthread.php?tid=439214 rMTA
I didn't have alot of time this days, but my friend has been doing it
But we have a problem when we join the map is already loaded, as we put the loading function under OnGameModeInit
When we join the server, we get Stay Within The World Boundaries...
We checked and there is no SetWorldBounds or SetWorldBounds anywhere
So we came here hoping you can help us, here is the code:
PHP код:
// OnGameModeInit
new RandomMap = random(MAX_MAPS), map_string[32], meta_string[32], string[64];
format(map_string,32,"maps/map_%i/map.map",RandomMap); // String, der den Pfad zur Map angibt.
format(meta_string,32,"maps/map_%i",RandomMap); // String, der den Pfad zur Meta.xml angibt.
LoadRaceMap(map_string,meta_string); // Lдdt die Map.
// Next Map Function
RandomMap = random(MAX_MAPS);
format(meta_string,32,"maps/map_%i",RandomMap);
GetMapName(meta_string,map_string);
format(string,64,"Next Map: %s",map_string);
for(new i=0; i<MAX_PLAYERS; i++)
{
SendClientMessage(i,-1,string);
}
// OnPlayerSpawn
SpawnInVehicle(playerid,SpawnPointVeh[playerid],SpawnPointX[playerid],SpawnPointY[playerid],SpawnPointZ[playerid],SpawnPointA[playerid],0,0,-1,-1,-1);
Thank You for reading
Re: Problem with rMTA -
MichaelJones - 20.08.2015
Edit: Explain more please
Re: Problem with rMTA -
Andre02 - 20.08.2015
I want to convert an MTA Map (.map [lua]) to .pwn
But for that i need to create a map uploader + converter, which i don't know the language.
So i found that rMTA (link above)
Did the code i needed etc..
The map is uploaded, but when the player spawn in the car i got the Stay Within World Boundaries shit, even tho the map is in the world boundaries
I search around and there is no SetWorldBounds or SetPlayerWorldBounds :/