Jump to content

Dimos7

Members
  • Posts

    1,546
  • Joined

  • Last visited

Everything posted by Dimos7

  1. function cars () c1 = createVehicle ( 520, 227.69921875, 1882.142578125, 17.640625, 0, 0, 90 ) end addEventHandler ( "onResourceStart", resourceRoot, cars ) function onEnter(thePlayer) if source == c1 and ( getElementData(thePlayer, "gang") == "Alpha Team" ) then outputChatBox("This Vehicle Is Locked for the Class:Admin", thePlayer, 0, 255, 0) cancelEvent() end end addEventHandler("onVehicleStartEnter", root, onEnter)
  2. Dimos7

    SOLVED

    function cars() c1 = createVehicle(520, -2891,84765625, 460.4560546875, 4.9140625, 0, 0, 90) end addEventHandler("onResourceStart", resourceRoot, cars) function onEnter(thePlayer) if getElementModel(thePlayer) ~= 125 and getElementModel(thePlayer) ~= 285 then cancelEvent() outputChatBox("This Vehicle Is Locked for The Soprano Vipers", thePlayer, 0, 255, 0) end end addEventHandler("onVehicleStartEnter", root, onEnter)
  3. Dimos7

    Big Problem

    function onWaste() takeAllWeapons(source) spawnPlayer(source, x, y, z, 0, getPedSkin(source), 0, 0) setElementHealth(source, 100) or 200 end addEventHandler("onPlayerWasted", getRootElement(), onWaste) x, y, z 0 is the rotation in put your location where player want spawn
  4. local cmd = {} function gay(thePlayer) end local account = getPlayerAccount(source) if getAccountName(account) == "swatrat" then if (isObjectInACLGroup("user." ..getAccountName(account), aclGetGroup("Admin"))) and not isTimer(cmd[thePlayer]) then triggerClientEvent(getRootElement(), "gay", getRootElement()) local name = getPlayerName( thePlayer ) outputChatBox (tostring( name )..": #FF00FFHA GAY", getRootElement(), 255, 255, 255, true ) cmd[thePlayer] = setTimer(resetcmd,30000,1,thePlayer) else if isTimer(cmd[thePlayer]) then local remaining,execute = getTimerDetails(cmd[thePlayer]) outputChatBox("#FF0000[CMD] #ffffffWait "..math.floor(remaining/1000).." seconds.",thePlayer,255,255,255,true) else end end end addCommandHandler("gay", gay) function resetcmd(thePlayer) if isTimer(cmd[thePlayer]) then killTimer(cmd[thePlayer]) end cmd[thePlayer] = nil end
  5. So you want to keep it when he rejoin and do drift and when a player is new then be 0?
  6. So its not save it like was when you quite?
  7. Yes and its server side mysql meta <script src="lazyquery.lua" type="server"/> <script src="s_mysql.lua" type="server"/> <export function="getMySQLUsername" type="server"/> <export function="getMySQLPassword" type="server"/> <export function="getMySQLDBName" type="server"/> <export function="getMySQLHost" type="server"/> <export function="getMySQLPort" type="server"/> <!-- above is legacy --> <export function="lazyQuery" type="server"/> <script src="connection.lua" type="server" /> <export function="ping" type="server" http="false" /> <export function="escape_string" type="server" http="false" /> <export function="query" type="server" http="false" /> <export function="forumQuery" type="server" http="false" /> <export function="forum_query_fetch_assoc" type="server" http="false" /> <export function="forum_query_free" type="server" http="false" /> <export function="forum_query_insert_free"type="server" http="false" /> <export function="unbuffered_query" type="server" http="false" /> <export function="query_free" type="server" http="false" /> <export function="fetch_assoc" type="server" http="false" /> <export function="rows_assoc" type="server" http="false" /> <export function="free_result" type="server" http="false" /> <export function="result" type="server" http="false" /> <export function="num_rows" type="server" http="false" /> <export function="query_fetch_assoc"type="server" http="false" /> <export function="query_rows_assoc" type="server" http="false" /> <export function="insert_id" type="server" http="false" /> <export function="query_rows_assoc" type="server" http="false" /> <export function="query_insert_free"type="server" http="false" /> <export function="escape_string" type="server" http="false" /> <export function="debugMode" type="server" http="false" /> <export function="returnQueryStats" type="server" http="false" /> <export function="getOpenQueryStr" type="server" http="false" /> <export function="lazyQuery" type="server" http="false" />
  8. say that resource already running and its exports i wrote it wrong
  9. i have a problem i put exports.mysql my resource running but say call non server resource string "?"
  10. now say unable to load the module
  11. Anyone knows why not work? modules mtaserver
  12. local server no have host
  13. i have put it on server run thouse mudle
  14. the error give me when run the server is that take nil value on 27
  15. i have the mta_mysql.dll
  16. Maker a error at line 27 take a nil value why?
  17. who can be wrongly use it on your slef /pm name Test?
  18. Now ouput false and player not found
  19. Now say player put make ouput that syntax think
×
×
  • Create New...