Jump to content

Cars Only for staff & shoping in F1


//_Dragon

Recommended Posts

Posted
Actually if you need the gui window only for staff then you should use what cody's gave you above and about the shop make you'r own one and bind it to F1 :).

I'm not good scripter :3 i'm still 25% scripter Only i need some one give me the script ( cleint / server ) then i'll continue creating the mod :wink:

Posted

I supplied everything you will need.

function guihunter () 
 local accountname = getAccountName (getPlayerAccount(client)) <- From GUI 
 if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "vip" ) ) then 
price = 0 
else 
price =25000 
end 
end 
else 
  

Posted
I supplied everything you will need.
function guihunter () 
 local accountname = getAccountName (getPlayerAccount(client)) <- From GUI 
 if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "vip" ) ) then 
price = 0 
else 
price =25000 
end 
end 
else 
  

Not working | i want make Only staff can get hydra & hunter & rhino , & player can't get them they most buy them from f1

Posted
He is trying to clone grafuroam or you cant understand? Enter on that server and you will see this things on it.

Get fucking out of my topic -_- | + i'm pro then u :) all mod's groam u have them u only stilling mods not creating new mod like me . so get out of my topic ok ? or .....

Posted
+ i'm pro then u :)

If you were so you could figure out how to do this yourself. A "Pro" could do this in a matter of minutes, seeing as you're trying to copy someone elses server, help ends here.

Posted
+ i'm pro then u :)

If you were so you could figure out how to do this yourself. A "Pro" could do this in a matter of minutes, seeing as you're trying to copy someone elses server, help ends here.

I'm saying i'm pro then him not i'm pro scripter :)

Any one help me ?

Posted
The link I put contains everything you need, it checks if the playey is an a certain ACL, if so you can use that to lower the price, or set price to 0.

Can u give a example for get hydra only for Admin from F1 ? :?:

Posted

Server Side

     function hydra () 
     local accountname = getAccountName (getPlayerAccount(client)) <- From GUI 
     if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then 
     local x, y, z = getElementPosition ( client )  
     hydra = createVehicle ( 520, x, y, z  ) 
     warpPedIntoVehicle (client, hydra )   
    else 
    outputChatBox ( "You must be admin to use this", client, 255, 255, 255, true ) 
    end 
    end 
  
  
rootElement = getRootElement() 
addEventHandler( "onHydraClick", rootElement, hydra)    
addEvent("onHydraClick", true) 
   

Client Side, triggers it.

    triggerServerEvent ( "onHydraClick", resourceRoot ) 

Posted
Waste of time on this guy. He doesnt even trying to make a code or to fix one.

Pfff the code has some problem if u're pro ( u aren't ) fixe it then say what u said to me :fadein: get out of my topic i dont need ur help :evil:

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...