Jump to content

showCursor# Help


iPrestege

Recommended Posts

Here My Script Not Working!

  
  
  
DeathWnd = guiCreateWindow(0, 0, 0, 0, "DeathMatch Game", false) 
  
function close() 
  
    guiSetVisible(DeathWnd,false) 
    showCursor(false) 
    showChat(true) 
    fadeCamera(true) 
end 
  
addEventHandler("onClientGUIClick",root, 
    function () 
        if ( source == Grove ) then 
            close() 
            setElementData(localPlayer,"x",-1819.62439) 
            setElementData(localPlayer,"y",-1610.32141) 
            setElementData(localPlayer,"z",23.01563) 
            setElementData(localPlayer,"skin",107) 
            setElementData(localPlayer,"team","Grove") 
            triggerServerEvent("spawnPlayer",localPlayer) 
        elseif ( source == Police ) then 
            close() 
            setElementData(localPlayer,"x",-1858.80212) 
            setElementData(localPlayer,"y",-1612.50281) 
            setElementData(localPlayer,"z",21.76415) 
            setElementData(localPlayer,"skin",285) 
            setElementData(localPlayer,"team","Police") 
            triggerServerEvent("spawnPlayer",localPlayer) 
        elseif ( source == NoTeam ) then 
            close() 
            setElementData(localPlayer,"x",-1911.83398) 
            setElementData(localPlayer,"y",-1671.33533) 
            setElementData(localPlayer,"z",23.01563) 
            setElementData(localPlayer,"skin",29) 
            setElementData(localPlayer,"team","No Team") 
            triggerServerEvent("spawnPlayer",localPlayer) 
        end 
    end 
) 
  

Edited by Guest
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...