Jump to content

Hello !!!


Recommended Posts

Posted

hello I have a problem in this part is not working

no enable race gamemode

Help-Me

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

Posted

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 

Posted
this line is no working I tried many things and nothing

What is missing ????

Read closely function arguments on Wikia!

setElementData 

Posted
You have to create or re-make the race gamemode and the mapManager resource.

you mean, I have to create a game mode all (create a race gamemode?)

Posted

I am trying to activate the race gamemode in dimension (2), but not activating this gamemode race was in clienteSide tried to put ServerSide and gave this error

I've got two weeks trying to find out why this problem

Posted

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.

Posted
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 ? :?::?::?:

Posted

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:

Posted
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) 

Posted

thus try !

function Racestart (player) 
   setElementData (player,"gamemode","[gamemodes]/[race]/race", true) 
end 
addEvent("start", true) 
addEventHandler( "start", getRootElement(), Racestart ) 

Posted
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

Posted

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 ) 

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

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

no working :cry:

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