LucasBaker Posted October 24, 2014 Share Posted October 24, 2014 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
n3wage Posted October 24, 2014 Share Posted October 24, 2014 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
LucasBaker Posted October 24, 2014 Author Share Posted October 24, 2014 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
Saml1er Posted October 24, 2014 Share Posted October 24, 2014 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
LucasBaker Posted October 24, 2014 Author Share Posted October 24, 2014 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
xeon17 Posted October 24, 2014 Share Posted October 24, 2014 What you mean? outputChatBox ? Link to comment
LucasBaker Posted October 24, 2014 Author Share Posted October 24, 2014 What you mean? outputChatBox ? as it creates a marker on the inside? Link to comment
xeon17 Posted October 24, 2014 Share Posted October 24, 2014 You want to create text inside the marker? sorry dude i really no understand your english. Link to comment
LucasBaker Posted October 24, 2014 Author Share Posted October 24, 2014 You want to create text inside the marker? sorry dude i really no understand your english. interior Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now