Jump to content

Problems that might be usefull to others if answered...


Would you play Utopia RPG the day it was released if we gave you an ingame gift?  

5 members have voted

  1. 1. Would you play Utopia RPG the day it was released if we gave you an ingame gift?

    • Yes - I would
      1
    • Maybe - If i have time
      3
    • No - Definatly Not
      1


Recommended Posts

Hey,

Im going to implement a few new features into my server, and im going to ask about them in this post if you would like to co operate...

Sorry, i dont have any code examples that need fixing, but that is i dont know if its posible or not...

1. Is there a way to move a player over to another gamemode e.g race, on a marker enter or colshape hit? Im not sure how to do this.

2. Is it posible to make a ped or element that only a player can see, so if i wanted e.g Steve the ped to only be seen by me or a player, how would i go about doing this?

Please can you start your answers or sugestions with 1. or 2. so i know which topic your talking about :idea:

Thanks

Link to comment

1. you need to edit the gamemodes, so that they will handle only selected players, it is not easy, but you may start by changing the type from gamemode to script, ass you can run only one gamemode at the same type

2. create the element client side, clientside elements only exist on clients that they've been cteated on

Link to comment
-- server side 
addCommandHandler('myped', 
    function(source, _) 
           triggerClientEvent(source, 'createMyPed', source) 
    end 
) 
  
--client side 
  
addEvent('createMyPed', true) 
addEventHandler('createMyPed', root, 
    function() 
           createPed(0, 0, 0, 0) --createPed(skin, x, y, z) 
    end 
) 

This way it will create a ped visible only for the player who type the command /myped.

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