Jump to content

Hello !!!


Recommended Posts

this line is no working I tried many things and nothing

What is missing ????

setElementData (localPlayer,"gamemode","[gamemodes]/[race]/race", true) 

function Click( ) 
    setElementDimension ( localPlayer, 2 ) 
    outputChatBox ( tostring ( getElementDimension ( localPlayer ) ) ) 
    setElementData (localPlayer,"gamemode","[gamemodes]/[race]/race", true) 
    guiSetVisible(myWindow, false) 
    showCursor(false) 
guiSetInputEnabled(false) 
end 

Link to comment
Unfortunately I can't help you here. I've never dealt with the race resource if you mean the standard one. But I can assure you that changing some lines of code at random is not gonna help you either.

then you can not help me here ! :oops:

Private message ? :?::?::?:

Link to comment

but not a feature race can also be play, cmd, deathmatch, etc. ...

and that the problem is not activating the gamemode :cry:

type

setElementData (source ,"gamemode","[gamemodes]/[play]/play", true) 

setElementData (source ,"gamemode","[gamemodes]/[deathmatch]/deathmatch", true) 
  

I just wanted to know why not activate the gamemode

if not can respond here send me a private message (Please) :mrgreen:

Link to comment
If you want to make a multigamemode server, You'll need more that element data ..

I know that it takes more lines, but the problem this this line, tried to correct, i could not, and I came here to ask for help :mrgreen:

setElementData (source,"gamemode","[gamemodes]/[race]/race", true) 

Link to comment
thus try !
function Racestart (player) 
   setElementData (player,"gamemode","[gamemodes]/[race]/race", true) 
end 
addEvent("start", true) 
addEventHandler( "start", getRootElement(), Racestart ) 

No Work :cry::cry::cry::cry:

the problem and I am trying to activate the game mode in another dimension but will not

Link to comment

Client

function Click( ) 
    setElementDimension ( localPlayer, 2 ) 
    outputChatBox ( tostring ( getElementDimension ( localPlayer ) ) ) 
    triggerServerEvent("racestart",localPlayer ) 
    guiSetVisible(myWindow, false) 
    showCursor(false) 
guiSetInputEnabled(false) 
end 

--------------------------------------------------

Server

function Racestart (hitElement) 
if ( isElement ( hitElement ) and getElementType ( hitElement ) == "player" ) then 
   setElementData (hitElement,"gamemode","[gamemodes]/[race]/race", true) 
       end 
end 
addEvent("racestart", true) 
addEventHandler( "racestart", getRootElement(), Racestart ) 

Link to comment
function Click( ) 
    setElementDimension( localPlayer, 2 ) 
    outputChatBox( tostring ( getElementDimension ( localPlayer ) ) ) 
    triggerServerEvent( "racestart", localPlayer, localPlayer ) 
    guiSetVisible( myWindow, false ) 
    showCursor( false ) 
    guiSetInputEnabled( false ) 
end 

Link to comment
function Click( ) 
    setElementDimension( localPlayer, 2 ) 
    outputChatBox( tostring ( getElementDimension ( localPlayer ) ) ) 
    triggerServerEvent( "racestart", localPlayer, localPlayer ) 
    guiSetVisible( myWindow, false ) 
    showCursor( false ) 
    guiSetInputEnabled( false ) 
end 

no working :cry:

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