thePlayer isn't defined.
I'll make a small example for your markerHit function:
function MarkerHit ( hitPlayer, matchingDimension )
local playerTeam = getPlayerTeam ( hitPlayer )
local copTeam = getTeamName ( playerTeam )
if ( copTeam == "Cop" ) then
moveObject( mg, 1000, 1545, -1624, 12.5)
end
end
Not tested, but I can't see why it shouldn't work.
As you're probably studying for Lua or already know it, may I make the following suggestion?
Resource Web Access page on the wiki. This allows you to implement pieces of Lua code into HTML. I guess it has pretty much the same functionality as you'd need from PHP.
You know, you could have just explained it and asked nicely. I'm not letting me being forced by someone unknown to do something which is his own fault for not making a freaking backup anyway.
If you really feel desperate to getting the damn file, reinstall GTA SA or go look at some other GTA website.
Well, tried downloading it manually?
http://www.microsoft.com/downloads/deta ... laylang=en
You could have used google to get an answer like this. In fact that would have been faster too. (win-win for everyone)
You're telling him to do pretty much the opposite of what he SHOULD do. If you get admin from the resources SVN, the "true" is already there. That's the problem!
<main>
<welcome />
</main>
This way it should work. When you've edited the settings.xml file, it should add all the rights the admin panel needs to function properly to the ACL, and re-add "true". (because it's installed in the ACL) So don't be surprised if you look back sometime and it's there again.
I think you skipped a part with reading.
http://development.mtasa.com/index.php? ... the_button
And there might be some other editors, but I guess still Notepad++ is pretty much the best option.
The map editor doesn't recognize them and therefor probably won't use them. So they most likely won't be saved either.
To fix this, you'd need to make/get an EDF for your elements.
For some reason, this indeed appears to happen usually. A way to get past this is setVehicleFrozen. Just set it to frozen, set the new position, and after some time unfreeze the vehicle.
I hope you're NOT trying to do this...
...but this instead...
...if you just want to play race on 1.0.
If you want to play something else than race with your maps, you'll need to convert them first.
This has been fixed for a while in MTA 1.0 nightlies. Just too bad they're not synched properly, but I heard from someone else it was like that in Race too.
playervar={} -- This is your table/array... whatever...
playervar[player1] = someVarOrMaybeAnotherTableHere
playervar[player2] = someOtherVarOrMaybeYetAnotherTableHere