-
Posts
1,546 -
Joined
-
Last visited
Everything posted by Dimos7
-
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)
-
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)
-
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
-
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
-
So you want to keep it when he rejoin and do drift and when a player is new then be 0?
-
So its not save it like was when you quite?
-
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" />
-
say that resource already running and its exports i wrote it wrong
-
i have a problem i put exports.mysql my resource running but say call non server resource string "?"
-
now say unable to load the module
-
Anyone knows why not work? modules mtaserver
-
local server no have host
-
i have put it on server run thouse mudle
-
the error give me when run the server is that take nil value on 27
-
i have the mta_mysql.dll
-
Maker a error at line 27 take a nil value why?
-
who can be wrongly use it on your slef /pm name Test?
-
Now ouput false and player not found
-
Now say player put make ouput that syntax think