Jump to content

Cyan

Members
  • Posts

    14
  • Joined

  • Last visited

Posts posted by Cyan

  1. Werido made them, and i finished them. Also the server you guys made with me. Zalmon you come in my computer with time viewer and deleted my mta files. You ruined my mta and i couldn't play. You stole the forum i made and the administration account. So i had reasons to upload the scripts.

  2. I need help with a gang war system, it is based on 2 teams Grov Street and Ballas, turfs are on, but when i come in one no message appear. This is the script:

    gang_Area = {}   
    gang_Col = {}    
    gang_Area["Groov Street"] = createRadarArea(2439.6716308594, -1719.4598388672, 200, 200, 0, 179, 4, 175) 
    gang_Col["Groov Street"] = createColRectangle(2439.6716308594, -1719.4598388672, 200, 200) 
    gang_Area["Ballas"] = createRadarArea(2130.5749511719, -1832.2039794922, 200, 200, 211, 0, 174, 175) 
    gang_Col["Ballas"] = createColRectangle(2130.5749511719, -1832.2039794922, 200, 200) 
      
    gangZone = {}  
    gangZone["Groov Street"] = "Groov Street" 
    gangZone["Ballas"] = "Ballas" 
      
    WarsGangZone = {}  
    WarsGangZone["Groov Street"] = {} 
    WarsGangZone["Groov Street"]["Ballas"] = 0 
    WarsGangZone["Groov Street"]["Groov Street"] = 0 
    WarsGangZone["Ballas"] = {} 
    WarsGangZone["Ballas"]["Groov Street"] = 0 
    WarsGangZone["Ballas"]["Ballas"] = 0 
      
    function onPlayerGangZoneHit(attacker) 
    local sourceTeam = getPlayerTeam(source)  
    local sourceTeamName = getTeamName(sourceTeam)  
     if attacker and (attacker ~= source) then  
      if (getElementType(attacker) == "player") then  
       attackerTeam = getPlayerTeam(attacker)  
       attackerTeamName = getTeamName(attackerTeam)  
       if attackerTeamName ~= sourceTeamName then 
        if (isElementWithinColShape(attacker, gang_Col[sourceTeamName])) then  
         if (WarsGangZone[attackerTeamName][sourceTeamName] < 3) then 
          destroyWarsGangZoneStats(attackerTeamName, sourceTeamName) 
          WarsGangZone[attackerTeamName][sourceTeamName] = WarsGangZone[attackerTeamName][sourceTeamName]+1 
           if (WarsGangZone[attackerTeamName][sourceTeamName] == 1) then 
            outputChatBox(" Player:"..getPlayerName(attacker).." èç "..attackerTeamName.." has provoked a turf war!"..sourceTeamName.."!", getRootElement(), 0, 0, 0,true) 
            setRadarAreaFlashing(gang_Area[sourceTeamName], true) 
            setTimer(FlashingStop,60000,1,sourceTeamName,attackerTeamName)       
           end   
        elseif (WarsGangZone[attackerTeamName][sourceTeamName] == 3) then 
          WarsGangZone[attackerTeamName][sourceTeamName] = 4 
          r, g, b =  getTeamColor(attackerTeam) 
          setRadarAreaColor(gang_Area[sourceTeamName], r, g, b, 175) 
          outputChatBox(" Gang: "..attackerTeamName.." is taking  "..sourceTeamName.."turf!", getRootElement(), 0, 0, 0,true) 
          setRadarAreaFlashing(gang_Area[sourceTeamName], false) 
          gangZone[sourceTeamName] = attackerTeamName 
         end 
        elseif (isElementWithinColShape(attacker, gang_Col[attackerTeamName])) then 
         if gangZone[attackerTeamName] ~= attackerTeamName then 
          if (WarsGangZone[attackerTeamName][attackerTeamName] < 3) then 
           destroyWarsGangZoneStats(attackerTeamName, attackerTeamName) 
           WarsGangZone[attackerTeamName][attackerTeamName] = WarsGangZone[attackerTeamName][attackerTeamName] + 1 
            if (WarsGangZone[attackerTeamName][attackerTeamName] == 1) then 
             setRadarAreaFlashing(gang_Area[attackerTeamName], true) 
             outputChatBox(" Player: "..getPlayerName(attacker).." is taking "..attackerTeamName.." turf!", getRootElement(), 0, 0, 0,true) 
             setTimer(FlashingStop,60000,1,sourceTeamName,attackerTeamName)  
            end 
          elseif (WarsGangZone[attackerTeamName][attackerTeamName] == 3) then 
           WarsGangZone[attackerTeamName][attackerTeamName] = 4 
           r, g, b = getTeamColor(attackerTeam) 
           setRadarAreaColor(gang_Area[attackerTeamName], r, g, b, 175) 
           outputChatBox(" Gang: "..attackerTeamName.." has taken the turf!", getRootElement(), 0, 0, 0,true) 
           setRadarAreaFlashing(gang_Area[attackerTeamName], false) 
           gangZone[attackerTeamName] = attackerTeamName 
          end 
         end 
        end 
       end   
      end 
     end 
    end 
    addEventHandler("onPlayerGangZoneHit", getRootElement(), PlayerGangZoneHit)  
      
    function destroyWarsGangZoneStats(gangName, assignGang) 
     if gangName == "Groov Street" then 
      WarsGangZone["Ballas"][assignGang] = 0 
     elseif gangName == "Ballas" then 
      WarsGangZone["Groov Street"][assignGang] = 0  
     end 
    end      
      
    function FlashingStop(sourceTeamName) 
     if (WarsGangZone[attackerTeamName][sourceTeamName] == 1) or (WarsGangZone[attackerTeamName][sourceTeamName] == 2) then 
      setRadarAreaFlashing(gang_Area[sourceTeamName], false) 
      WarsGangZone[attackerTeamName][sourceTeamName] = 0 
      outputChatBox(" Gang: "..attackerTeamName.." is taking "..sourceTeamName.."'s turf!", getRootElement(), 0, 0, 0,true) 
     end  
    end  
    

    Thanks for any help.

  3. Ok, me and Zalmon (the hoster) recently started to make a server named USSA United States of San Andreas|RPG , and we started to make the gamemode. It looks like this:

    -Jobs: Medic,Taxi, Bus Driver, Trucker, Cop, Mechanic ...

    -Markers based on player hit (still working on better ones)

    -Bank system (based on 50p's)

    -Save system (still needs to save weapons too)

    -Burgers, PayNspray & ModShops

    -Alot of minor things

    We need help in finishing the gameplay and every one that want's to help should post here, we will be glad for every help recived. Things that we need:

    -Clothes System + Clothes Shop

    -Vehicles System + Vehicles Shop

    -House System with posibility to sell houses to other players

    -Criminal Jobs

    -Gang System/Group System

    -Other minor things

    Note: The server developement can be seen on the 24/7 (with rarely shot downs..) server USSA United States of San Andreas|RPG . To help us post here or meet us on the server. Any help will be apreciated.

  4. Deocamdata intrati pe USSA United States of San Andreas|RPG este 24/7 si lucrez la el cu cativa prieteni. Daca strangem vreo 20 de romani, toti sa fie buni ca admini si scripteri vom transforma USSA in RO|RPG

  5. Sunt acelasi )*,..*( de mai sus, doar o mica schimbare de look. Am fost inactiv un timp. Momentan sunt scripter in USSA United States of San Andreas|RPG dar desigur voi ajuta la serverul la care am avut ideea de al crea. Contactati-ma pe [email protected] .

×
×
  • Create New...