- 
                Posts21,935
- 
                Joined
- 
                Last visited
- 
                Days Won6
Everything posted by Castillo
- 
	El resto del script funciona Carlos? porque si no funciona, diria yo que tenes un error en el codigo.
- 
	Thanks a lot dude . May a Moderator close the topic to avoid spam?
- 
	Thank you solide, So when i use a normal blip id, i replace myblip.. with the id nr? And when saved it the map icon will be not available to see on the radar from far distance? Or is this just the code to change the map icon? Thanks man What...? to create a custom icon just use a IMAGE file, what's the point of using the normal blips if you want custom?
- 
	Hi everyone, I'm creating this post to request help about a function to detect if a column exists in a MySQL Table. function doesColumnExists(tableName, columnName) local query = dbQuery( connection, "SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME=? AND COLUMN_NAME=?", tableName, columnName ) local result, numrows, errmsg = dbPoll ( query, -1 ) if (result == nil) then dbFree(query) end if (numrows == 0) then return false else return true end end This script worked fine until now, it says that a column exists even when it doesn't. If someone could find out my error. Thanks in advance.
- 
	-- client side: exports.customblips:createCustomBlip ( -1338, -2075, 23, 37, "myBlipImage.png", 500 )
- 
	You can use Dzek's online tool: http://mta.dzek.eu/vehicle/
- 
	Yeah, that should be what do you need.
- 
	Oh, you mean when you set the camera back to the player?
- 
	team1 = createTeam("Team1", 255,255,255) team2 = createTeam("Team 2",0,255,255) function onPlayerJoin() outputChatBox("Team 1 has: ".. tostring(countPlayersInTeam(team1)) .." players.", source) outputChatBox("Team 2 has: ".. tostring(countPlayersInTeam(team2)) .." players.", source, 0,255,255) end addEventHandler("onPlayerJoin", root, onPlayerJoin)
- 
	Ehm, if you reconnect, the camera will move of course .
- 
	What do you mean by "moves"?
- 
	Run sharks = {} first, then the rest... Else get a GUI-runcode, it's easy to create one.
- 
	Use the in-game runcode ffs. /run
- 
	Just use "runcode", is a resource that comes with your MTA. Admin Panel execute command is bullshit.
- 
	OMG, you're the one who doesn't understand. EXECUTE COMMAND = Lua! Are you f*** stupid or what? they're both the same thing, just copy the damn code.
- 
	Read the wiki note: Use setCameraMatrix instead.
- 
	If you want to make a command one then use this: local sharks = {} addCommandHandler("shark", function (pl) if isElement(sharks[pl]) then destroyElement(sharks[pl]) sharks[pl] = nil end sharks[pl] = createObject ( 1608, 0, 0, 0 ) attachElements ( sharks[pl], pl, 0, 0, 5 ) end)
- 
	That should be to send back the player to the interior 0.
- 
	May I say: THAT'S A TOTAL MESS.
- 
	I just set my server to 512 slots, no problems.
- 
	shark = createObject ( 1608, 5540.6654, 1020.55122, 1240.545, 90, 0, 0 ) attachElements ( shark, getPlayerFromName("MyName"), 0, 0, 5 ) Your questions are really stupid.
- 
	That's because you forgot to set the marker interior . local Marcklbara = createMarker(1426.9169921875, -962.58819580078, 38.342342376709, 'arrow', 2, 0, 255, 0, 150) local Marcklde5el = createMarker(246.4510, 65.5860, 1003.6410, 'arrow', 2, 0, 255, 0, 150) setElementInterior(Marcklde5el, 6) function Entrer(hitPlayer, matchingDimension) local team = getPlayerTeam(hitPlayer) if (not team) then return end if (getTeamName(team) == "Criminal") then setElementInterior(hitPlayer, 6, 246.4510, 65.5860, 1003.6410) else outputChatBox("You cannot enter. You need to be a criminal.", hitPlayer) end end addEventHandler("onMarkerHit", Marcklbara, Entrer) function Sortie(hitPlayer, matchingDimension) local team = getPlayerTeam(hitPlayer) if (not team) then return end if (getTeamName(team) == "Criminal") then setElementInterior(hitPlayer,0,1426.9169921875,-962.58819580078,35.342342376709) end end addEventHandler("onMarkerHit", Marcklde5el, Sortie)
- 
	Who told you that? because whoever did, he lied. @novo: It worked perfectly for me, how are you executing setMaxPlayers?
- 
	local Marcklbara = createMarker(1426.9169921875, -962.58819580078, 38.342342376709, 'arrow', 2, 0, 255, 0, 150) local Marcklde5el = createMarker(246.4510, 65.5860, 1003.6410, 'arrow', 2, 0, 255, 0, 150) function Entrer(hitPlayer, matchingDimension) local team = getPlayerTeam(hitPlayer) if (not team) then return end if (getTeamName(team) == "Criminal") then setElementInterior(hitPlayer, 6, 246.4510, 65.5860, 1003.6410) else outputChatBox("You cannot enter. You need to be a criminal.", hitPlayer) end end addEventHandler("onMarkerHit", Marcklbara, Entrer) function Sortie(hitPlayer, matchingDimension) local team = getPlayerTeam(hitPlayer) if (not team) then return end if (getTeamName(team) == "Criminal") then setElementInterior(hitPlayer,0,1426.9169921875,-962.58819580078,35.342342376709) end end addEventHandler("onMarkerHit", Marcklde5el, Sortie)

 
            
        