Jump to content

Problem setplayerteam !


Recommended Posts

Posted

Hi,

i have littel problem with this code i used to Set team for player but its not working,

  
addEvent("thekeem", true) 
addEventHandler("thekeem", root, 
function() 
local team = getTeamFromName("Iveco Drivers") 
    if team then 
 setplayerteam (source,team) 
    else 
local noteam = getTeamFromName ("Iveco Drivers") 
    if noteam then 
    cancelEvent 
    end 
    end 
end 
) 
  

  • Moderators
Posted

setplayerteam(source,team) 
setPlayerTeam(source,team) 

cancelEvent 
cancelEvent() 

Even so, cancelEvent has no function in this set-up.

Posted
setplayerteam(source,team) 
setPlayerTeam(source,team) 

cancelEvent 
cancelEvent() 

Even so, cancelEvent has no function in this set-up.

Same Problem, :?

Posted
How did you set-up your triggerServerEvent(??????) ?

there is no problem with trigger i use

  
setElementModel 
  

to change player skin and it work, :(

  • Moderators
Posted

setElementModel isn't in the code you posted, pls get serious or I will stop helping you.

Posted
setElementModel isn't in the code you posted, pls get serious or I will stop helping you.

im serious man i mean i test the trigger by deleting the code and write setElementModel

Posted

thanks man i fix it the problem :

  
function setteam() 
local team = getTeamFromName("Iveco Drivers") 
    if team then 
 setplayerteam (source,team) 
    else 
local noteam = getTeamFromName ("Iveco Drivers") 
   if noteam then 
   cancelEvent 
   end 
    end 
end 
addEvent("thekeem", true) 
addEventHandler("thekeem", root,setteam) 

Posted
setplayerteam(source,team) 
setPlayerTeam(source,team) 

cancelEvent 
cancelEvent() 

Even so, cancelEvent has no function in this set-up.

function setteam() 
local team = getTeamFromName("Iveco Drivers") 
    if team then 
 setPlayerTeam (source,team) 
    else 
local noteam = getTeamFromName ("Iveco Drivers") 
   if noteam then 
   cancelEvent() 
   end 
    end 
end 
addEvent("thekeem", true) 
addEventHandler("thekeem", root,setteam) 

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