Jump to content

ville

Members
  • Posts

    21
  • Joined

  • Last visited

Details

  • Gang
    GTA Finland

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

ville's Achievements

Civilian

Civilian (7/54)

0

Reputation

  1. Hi, i want to modify this script so polices can give tickets to criminals, i added that wanted line .. but its not working. I want to know what im doing wrong function mandat(player, cmd, who, ile) local who = getPlayerFromName(who) if getPlayerTeam(player) == getTeamFromName("Police") then takePlayerMoney(who, tonumber(ile)) outputChatBox("Player "..getPlayerName(who).." has been given ticket ("..tonumber(ile).."$)") end end addCommandHandler("ticket", mandat)
  2. players = getElementsByType("player") addEventHandler("onResourceStart", resourceRoot, function() for index,player in ipairs(players) do bindKey(player, "M","down", sirens) end end) function sirens(player) local veh = getPedOccupiedVehicle(player) if (veh) then addVehicleSirens(veh,1,1) if not getVehicleSirensOn (veh) then setVehicleSirensOn (veh, true) else setVehicleSirensOn (veh, false) removeVehicleSirens(veh) end end end I dont know.. I have 2 siren files need to replace like first when u turn firens on and the other siren when u pressing siren button
  3. Is there any way to replace police sirens wit hother sirens? I have mp3 files for the both siren, what i have to do now?
  4. ville

    Login video HELP

    Ohh sh*t i have great idea but no ;D
  5. Is there any way to put video to player screen when they join the server, and after login video then player can login?
  6. Oh nothing, thanks! its working fine
  7. Aand still players can be killed in greenzone...
  8. Players can still killed in greenzone
  9. i have little wantedoff thing, you can get your start rid with it. Now is there any way to disable jetpack and F1 while hawing wanted level? addCommandHandler("wantedoff", function(pSource) if getPlayerMoney(pSource) < 5000 then outputChatBox("* Police: You don't have enough money!", pSource, 255, 0, 0) return end outputChatBox("* Police: You are clear now.", pSource, 0,255,0) takePlayerMoney(pSource, 1000) setPlayerWantedLevel(pSource, 0) end )
  10. Aand the best thing is .. i dont really understand tables yet
  11. Thanks, but now i have problem.. if 2 players are doing plane mission sametime and one goes to finalmarker and gets his reward, then the other one goes and nothing happens
  12. i have done plane mission working correctly, but how can i do that the plane gets destroyed after finished mission? i have tried so many things missionMarker = createMarker ( -1626.1, -373.5, 13.4, "cylinder", 2, 0, 255, 255, 170 ) addEventHandler("onResourceStart", resourceRoot, function ( ) missionBlip = createBlipAttachedTo(missionMarker,53) outputChatBox( "[Plane Mission] Ota ammatti lähtölippu kuvakkelta.", player, 0, 255, 255 ) end ) addEventHandler("onMarkerHit", missionMarker, function ( hitElement ) if (getElementType ( hitElement ) == 'player' ) then local plane = createVehicle ( 519, -1654, -162, 14, 0, 0, -45 ) warpPedIntoVehicle ( hitElement, plane ) outputChatBox( "[Plane Mission] Lennä punaiselle lipulle.", hitElement, 0, 255, 255 ) finalMarker = createMarker ( 338, 2505, 16, "checkpoint", 6, 255, 255, 0, 170 ) finalBlip = createBlipAttachedTo(finalMarker,19) end end ) function Remove(thePlayer) if (getElementType(thePlayer) == "player") then if (finalMarker ~= nil) and (source == finalMarker) then if isElement(finalMarker) then givePlayerMoney ( thePlayer, 10000 ) removeEventHandler("onMarkerHit", finalMarker, Remove) destroyElement(finalMarker) outputChatBox( "[Plane Mission] Kiitos kun veit lentokoneen huoltoon. Saat 10K palkkiota.", hitElement, 0, 255, 255 ) end if isElement(finalBlip) then destroyElement(finalBlip) end end end end addEventHandler("onMarkerHit", getRootElement(), Remove)
×
×
  • Create New...