Jump to content

[HELP]turfing


K4stic

Recommended Posts

How make Owner's i mean then player's in same Group take this turf to be can't take it again untill it take's other group

and to output there => outputChatBox ( "Turf owners: here be the name of that Group Turf Owner", p, 255, 255, 0 ) <= Sorry for my bad english

addEventHandler ( 'onColShapeHit', root, 
    function ( p ) 
        if ( getElementData ( p, "Group" ) ) then 
            if ( source == pCuboid ) then 
                outputChatBox ( "Turf owners: coming soon!", p, 255, 255, 0 ) 
                outputChatBox ( "Wait 5 min to take turf.", p, 255, 255, 0 ) 
                setRadarAreaFlashing ( pArea, true ) 
                getElemetdata( p, "owners") 
                local pGang = getElementData ( p, "Group" ) 
                setTimer ( 
                    function ( ) 
                        setRadarAreaColor ( pArea, iR2, iG2, iB2, 100 ) 
                        givePlayerMoney ( p, 5000 ) 
                        outputChatBox ( "Congratulations, #FFFF00 you have taken the turf!", p, 0, 255, 0, true ) 
                        setRadarAreaFlashing ( pArea, false ) 
                        getElementdata ( p, "Group" ) 
                        setElementdata( p, "owners" ) 
                    end 
                    ,300000, 1 
                ) 
            end 
        else 
            outputChatBox ( "Get in a group first!", p, 255, 0, 0 ) 
        end 
    end 
) 
  
addEventHandler ( 'onColShapeLeave', root, 
    function ( ) 
        if ( source == pCuboid ) then 
            setRadarAreaFlashing ( pArea, false ) 
        end 
    end 
) 

Link to comment
I no have say is my i just ask help in part who i make -_-

The script is mine, I could help you, but i am busy.

If i have time, i might update it.

He didnt steal that :/ he is upgrading it, Guyz help him :/ he isnt stealing.

I know he is just upgrading it, but as far as i know, MTA forums scripting section is to help with your own scripts, not someone else

Link to comment
I no have say is my i just ask help in part who i make -_-

The script is mine, I could help you, but i am busy.

If i have time, i might update it.

He didnt steal that :/ he is upgrading it, Guyz help him :/ he isnt stealing.

I know he is just upgrading it, but as far as i know, MTA forums scripting section is to help with your own scripts, not someone else

50p is always helping with editing his own scripts.. as far as I remember.

Link to comment
Because that script isn't yours. I don't know anyone that uses "p" as player argument neither that uses prefixes like the ones used in that code except myself and I don't remember helping you in MTASA forums with turfs.

Nice catch xD

Btw Skipper if you want help , put the author name if you didn't that means your dis-respecting him.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...