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 factionID = exports.factions:getPlayerFactions( thePlayer )
- if factionID then
- --if inPD and factionTag then
- outputchatbox("A unit needs assistance.", thePlayer)
- --else
- -- outputChatBox(tostring(inPD) .."Error"tostring(factionID), v, 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