Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function showBeacon ( thePlayer, commandName )
- if exports.players:isLoggedIn( thePlayer ) then
- local pdMember = getElementsByType("player")
- local inPD, factionID, factionName, factionTag = exports.factions:isPlayerInFactionType( pdMember, 1 )
- if inPD and factionTag then
- outputChatBox("You are in PD", pdMember)
- else
- outputChatBox("Error", pdMember, 255, 0, 0)
- --[[ if not backupBeacon then
- local playerx, playery, playerz = getElementPosition( thePlayer )
- backupBlip = createBlip( playerx, playery, playerz, 0, 3, 255, 0, 0, 255, 0 , 99999.0, pdMember)
- outputChatBox("A unit is in need of assistance, respond ASAP!", pdMember, 255, 150, 0)
- attachElements ( backupBlip, thePlayer)
- backupBeacon = true
- else
- destroyElement( backupBlip )
- backupBeacon = false
- outputChatBox("The unit no longer requires assistance.", pdMember, 255, 150, 0)
- end]]
- end
- end
- end
- addCommandHandler("backup", showBeacon)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement