Jump to content

Bad player pointer set player team


Alazam

Recommended Posts

Hello i have this error and player dont go in team why ?

teamgroove = createTeam ( "Groove", 26, 124, 15 ) 
teamballas = createTeam ( "Ballas", 69, 21, 132 ) 
teamvagos = createTeam ( "Vagos", 172, 153, 28 ) 
teamcops = createTeam ( "Cops", 20, 63, 208 ) 
  
function groovespawn() 
    spawnPlayer(client, 2495, -1686, 13) 
    fadeCamera(client, true) 
    setCameraTarget(client, client) 
    outputChatBox("You are a groove", client) 
    giveWeapon ( source, 1, 1 ) 
    giveWeapon ( source, 28, 500 ) 
    giveWeapon ( source, 25, 500 ) 
    setPlayerTeam( source, teamgroove) 
end 
 function ballasspawn() 
    spawnPlayer(client, 1959.55, -1714.46, 10) 
    fadeCamera(client, true) 
    setCameraTarget(client, client) 
    outputChatBox("You are a ballas", client) 
    giveWeapon ( source, 1, 1 ) 
    giveWeapon ( source, 32, 500 ) 
    giveWeapon ( source, 30, 500 ) 
    setPlayerTeam( source, teamballas) 
end 
 function vagosspawn() 
    spawnPlayer(client, 1959.55, -1634, 10) 
    fadeCamera(client, true) 
    setCameraTarget(client, client) 
    outputChatBox("You are a vagos", client) 
    giveWeapon ( source, 1, 1 ) 
    giveWeapon ( source, 29, 500 ) 
    giveWeapon ( source, 33, 500 ) 
    setPlayerTeam( source, teamvagos) 
end 
 function copsspawn() 
    spawnPlayer(client, 1575, -1634, 13) 
    fadeCamera(client, true) 
    setCameraTarget(client, client) 
    outputChatBox("You are a cops", client) 
    giveWeapon ( source, 31, 500 ) 
    giveWeapon ( source, 17, 3 ) 
    setPlayerTeam( source, teamcops) 
end 

Link to comment

I have

addEvent("grooveevent",true) 
addEvent("ballasevent",true) 
addEvent("vagosevent",true) 
addEvent("copsevent",true) 
addEventHandler("grooveevent",root,groovespawn) 
addEventHandler("ballasevent",root,ballasspawn) 
addEventHandler("vagosevent",root,vagosspawn) 
addEventHandler("copsevent",root,copsspawn) 

And client side script its not that the question i just want to know how to fix the error

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