-
Posts
814 -
Joined
-
Last visited
Everything posted by Wei
-
Where I can find this things: #1 #2 #3 #4 and where I can find this scoreboard columns wich race automaticaly adds it ?
-
put the username: root password: database: test and it will work
-
addEvent ( "onMapStarting" ) function saveColours ( playerSource ) local playerAccount = getPlayerAccount ( playerSource ) local playerVehicle = getPlayerOccupiedVehicle ( playerSource ) if ( playerAccount ) and not isGuestAccount ( playerAccount ) then local color1, color2, color3, color4 = getVehicleColor ( playerVehicle ) local r, g, b = getVehicleHeadLightColor ( playerVehicle ) setAccountData ( playerAccount, "idd.ccolor1", colour1 ) setAccountData ( playerAccount, "idd.ccolor2", colour2 ) setAccountData ( playerAccount, "idd.ccolor3", colour3 ) setAccountData ( playerAccount, "idd.ccolor4", colour4 ) setAccountData ( playerAccount, "idd.cchcr", r) setAccountData ( playerAccount, "idd.cchcg", g) setAccountData ( playerAccount, "idd.cchcb", b) outputChatBox ( "Your Chosen Colours have Been Saved!", source) end end addCommandHandler("saveColours", saveColours) function setCarColours(_, playerAccount) local playerVehicle = getPlayerOccupiedVehicle ( source ) local color1 = getAccountData ( playerAccount, "idd.ccolor1") local color2 = getAccountData ( playerAccount, "idd.ccolor2") local color3 = getAccountData ( playerAccount, "idd.ccolor3") local color4 = getAccountData ( playerAccount, "idd.ccolor4") local r = getAccountData ( playerAccount, "idd.cchcr" ) local g = getAccountData ( playerAccount, "idd.cchcg" ) local b = getAccountData ( playerAccount, "idd.cchcb" ) setVehicleColor ( playerVehicle, color1, color2, color3, color4 ) getVehicleHeadLightColor ( playerVehicle, r,g,b) end addEventHandler ( "onMapStarting", getRootElement(),setCarColours ) -- For EVERY Event in server you need to have root here.
-
you can use something like this remVehicle( player) -- here you create vehicle setElementData( vehicle, "Owner", getPlayerName(player) and then destroy it with function remVeh(source) for k, v in ipairs (getElementsByType("vehicle")) do if getElementData( v, "Owner" ) == getPlayerName(source) then destroyElement( v ) end end end function destroyVehicle() for k, v in ipairs (getElementsByType("vehicle")) do if getElementData( v, "Owner" ) == getPlayerName(source) then destroyElement(v) end end end addEventHandler("onPlayerQuit", root, destroyVehicle) addEventHandler("onPlayerWasted", root, destroyVehicle)
-
try replacing hostname to localhost and show us error...
-
function removeZombiesIfNotLasVenturas() for k, v in ipairs (getElementByType("ped")) do if not isElementWithinColShape( v, zombiesZone ) then if isPedZombie( v ) then killPed( v ) end end end end addEventHandler("onClientRender", getRootElement(), removeZombiesIfNotLasVenturas) why it doesn't kill the zombie? or zombie is not ped?
-
We are now just looking for scripters we are looking for 2 scripters
-
function refreshPoliceComputerGridList() guiGridListClear ( policeComputerGUI["PlayerGridList"] ) for index, player in ipairs (getElementsByType("player")) do if getPlayerWantedLevel( player ) >= 1 then local row = guiGridListAddRow ( policeComputerGUI["PlayerGridList"] ) guiGridListSetItemText ( policeComputerGUI["PlayerGridList"], row, policeComputerGUI["PlayerNameColumn"], getPlayerName ( player ), false, false ) guiGridListSetItemText ( policeComputerGUI["PlayerGridList"], row, policeComputerGUI["PlayerWantedLevel"], " "..getPlayerWantedLevel( player ), false, false ) guiGridListSetItemText ( policeComputerGUI["PlayerGridList"], row, policeComputerGUI["MoneyBonus"], " "..getPlayerWantedLevel( player )*15000, false, false ) end end end Why it adds all players and all players has the same wanted level as I ?
-
Hi. I have problem. When I hit marker I start a route and when otheplayer hit it(he can't see it) then it starts again/(only for me). How can I fix? CODE client: function createHackerRoute() if getElementData( localPlayer, "Role" ) == "Hacker" then if not getElementData( localPlayer, "Route" ) then outputChatBox("Your hacker route has been started", 255, 255, 0, true) cMakerAndStartNewRoute() setElementData( localPlayer, "Route", true ) else outputChatBox("You have allready started a route", 255, 255, 0, true) end end end addCommandHandler("hackerroute", createHackerRoute) function cMakerAndStartNewRoute() local x,y,z = mathTheHackerRandomPosition() hackerMarker = createMarker( x,y,z-1, "cylinder", 2 ) hackerBlip = createBlipAttachedTo( hackerMarker, 19 ) addEventHandler("onClientMarkerHit", hackerMarker, cTimerHacker) end function cTimerHacker() theTimer = setTimer( checkIFisTimer , 30000, 1 ) setElementFrozen( localPlayer, true ) addEventHandler ( "onClientRender", root, createText ) end
-
Yeah we allready have host. Today we might get website.
-
You're welcome
-
All people (witch can script ofc) can make their own server and get donations. They might even get more $ than you will give it to them.
-
set the database name to test it will work
-
MTADiag: http://pastebin.com/GyQ9WXqY Edit: Here is the error in crashbox: Version = 1.3-release-4362.0.000 Time = Fri Jul 06 22:02:48 2012 Module = C:\Windows\SYSTEM32\ntdll.dll Code = 0xC0000005 Offset = 0x00051DF8 EAX=E61596C8 EBX=E61596D0 ECX=04CE9660 EDX=72F2FA01 ESI=01730000 EDI=00000000 EBP=0022FBE8 ESP=0022FBD8 EIP=77C71DF8 FLG=00210246 CS=001B DS=0023 SS=0023 ES=0023 FS=003B GS=0000
-
/start is command to start resource addEventHandler('onClientResourceStart',resourceRoot, function() lsv1 = engineLoadDFF ('lsv1.dff', 108 ) engineReplaceModel ( lsv1, 108 ) lsv2 = engineLoadTXD ( 'lsv1.txd' ) engineImportTXD ( lsv2, 108 ) end )
-
function createFileHandler() if not xmlLoadFile("stations.xml") then local xmlFile = xmlCreateFile("stations.xml","stations") local stationInfo = xmlCreateChild(xmlFile, "station") xmlNodeSetAttribute(stationInfo, "name", "Power 181") xmlNodeSetAttribute(stationInfo, "url", "http://www.181.fm/asx.php?station=181-uktop40&style=&a..scription=") local stationInfo1 = xmlCreateChild(xmlFile, "station") xmlNodeSetAttribute(stationInfo1, "name", "NonStopPlay.com") xmlNodeSetAttribute(stationInfo1, "url", "http://www.nonstopplay.com/broadband.asx") xmlSaveFile(xmlFile) end end trigger with createFileHandler() why doesn't work ?