Jump to content

getPlayerTeam help


LucasBaker

Recommended Posts

  
dutymarker = createMarker(334.50107, -1510.39063, 35.86719, 'cylinder', 2.0, 255, 0, 0, 150) 
verificar =  getplayerTeam (source, Policia Federal) 
  
function duty(source) 
 if isElementWithinMarker(source, dutymarker, verificar) then 
   outputChatBox("Você é da Polícia Federal", source, 255, 0, 0)   
 else 
    outputChatBox("Você não é da Polícia Federal", source, 255, 0, 0) 
 end 
end 
addCommandHandler("npm", duty) 

It Does not Work?

the getplayerteam was to check if the player 's team to enter / npm

Link to comment
dutymarker = createMarker(334.50107, -1510.39063, 35.86719, 'cylinder', 2.0, 255, 0, 0, 150) 
  
function duty(player) 
 if isElementWithinMarker(player, dutymarker) and getTeamName(getPlayerTeam(player)) == "Policia Federal" then 
   outputChatBox("Você é da Polícia Federal", player, 255, 0, 0)   
 else 
    outputChatBox("Você não é da Polícia Federal", player, 255, 0, 0) 
 end 
end 
addCommandHandler("npm", duty) 

Link to comment
dutymarker = createMarker(334.50107, -1510.39063, 35.86719, 'cylinder', 2.0, 255, 0, 0, 150) 
  
function duty(player) 
 if isElementWithinMarker(player, dutymarker) and getTeamName(getPlayerTeam(player)) == "Policia Federal" then 
   outputChatBox("Você é da Polícia Federal", player, 255, 0, 0)   
 else 
    outputChatBox("Você não é da Polícia Federal", player, 255, 0, 0) 
 end 
end 
addCommandHandler("npm", duty) 

and if I want to get a message to appear on the marker?

Link to comment
dutymarker = createMarker(334.50107, -1510.39063, 35.86719, 'cylinder', 2.0, 255, 0, 0, 150) 
  
function duty(player) 
 if isElementWithinMarker(player, dutymarker) and getTeamName(getPlayerTeam(player)) == "Policia Federal" then 
   outputChatBox("Você é da Polícia Federal", player, 255, 0, 0)   
 else 
    outputChatBox("Você não é da Polícia Federal", player, 255, 0, 0) 
 end 
end 
addCommandHandler("npm", duty) 

and if I want to get a message to appear on the marker?

viewtopic.php?f=91&t=41210

Link to comment
dutymarker = createMarker(334.50107, -1510.39063, 35.86719, 'cylinder', 2.0, 255, 0, 0, 150) 
  
function duty(player) 
 if isElementWithinMarker(player, dutymarker) and getTeamName(getPlayerTeam(player)) == "Policia Federal" then 
   outputChatBox("Você é da Polícia Federal", player, 255, 0, 0)   
 else 
    outputChatBox("Você não é da Polícia Federal", player, 255, 0, 0) 
 end 
end 
addCommandHandler("npm", duty) 

and if I want to get a message to appear on the marker?

viewtopic.php?f=91&t=41210

but in chat

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