0 Üye ve 1 Ziyaretçi konuyu incelemekte.
function onPlayerSpawn ( spawnpoint ) --creates blip for player on team join local team = getPlayerTeam (source) if (team == teamMexicans) then createBlipAttachedTo ( source, 0) end end function onPlayerSpawn ( spawnpoint ) --creates blip for player on team join local team = getPlayerTeam (source) if (team == teamBorderControl) then createBlipAttachedTo ( source, 0) end end blips = getElementsByType ( "blip" ) --sets blip colour for blipKey, blipValue in ipairs(blips) do red, green, blue, alpha = getBlipColor ( blipValue ) local team = getPlayerTeam (source) if (team == teamMexicans) then setBlipColor ( blipValue, 255, 0, 0, 255 ) end end function onPlayerQuit () destroyBlipsAttachedTo ( source ) end function onPlayerWasted ( totalammo, killer, killerweapon ) destroyBlipsAttachedTo ( source ) end addCommandHandler ( "setblipscolor", setBlipsColor ) addCommandHandler ( "setblipcolor", setBlipColor ) addEventHandler ( "onResourceStart", resourceRoot, onResourceStart ) addEventHandler ( "onPlayerSpawn", root, onPlayerSpawn ) addEventHandler ( "onPlayerQuit", root, onPlayerQuit ) addEventHandler ( "onPlayerWasted", root, onPlayerWasted ) function destroyBlipsAttachedTo(player) local attached = getAttachedElements ( player ) if ( attached ) then for k,element in ipairs(attached) do if getElementType ( element ) == "blip" then destroyElement ( element ) end end end end