Bean666 Posted June 13, 2014 Share Posted June 13, 2014 (edited) Guys , if i activate my spawn panel , when i spawn , or other players , blips dont appear , any help would come? Code: --Authorities-- aut1 = createTeam ("Marines", 9, 110, 36) aut2 = createTeam ("Navy Seals", 25, 65, 201) aut3 = createTeam ("Silenced Seal", 25, 65, 201) aut4 = createTeam ("Squad141", 245, 160, 15) --Civilians-- civ1 = createTeam ("Civillians", 228, 252, 14) --Gangs-- --redvsblue-- --gang privates-- clan1 = createTeam ("USRT", 16, 81, 98) clan2 = createTeam ("Bloodbath and Beyond", 147, 2, 2) clan3 = createTeam ("Party Squad", 0, 230, 255) --Staff Team-- adminP = createTeam ("Staff Team", 26, 152, 182) --terrorist-- rebels = createTeam ("Terrorists", 163,153,51) srebel = createTeam ("Silenced Rebel", 163,153,51) --fun classes-- fcl = createTeam ("Fun Classes", 120,35,35) bwc = createTeam ("Blackwatch.Inc", 100,100,100) function spawnMarines (prevA, curA, spawn) spawnPlayer (source, 214.248046875, 1866.96875, 13.140625, 4.44677734375, 287, 0, 0, aut1) -- spawns player with random skin fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 3, 1) giveWeapon ( source, 24, 150) giveWeapon ( source, 25, 99) giveWeapon ( source, 31, 1300) end addEvent( "spawnMarines", true ) addEventHandler( "spawnMarines", root, spawnMarines ) function spawnNavy (prevA, curA, spawn) -- spawnPlayer (source, -1347.703125, 494.3017578125, 18.227842330933, 356.9045715332, 285, 0, 0, aut2) -- fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 3, 1) giveWeapon ( source, 24, 150) giveWeapon ( source, 25, 99) giveWeapon ( source, 31, 900) end addEvent( "spawnNavy", true ) -- addEventHandler( "spawnNavy", root, spawnNavy ) -- function spawnssniper (prevA, curA, spawn) -- spawnPlayer (source, -1347.703125, 494.3017578125, 18.227842330933, 356.9045715332, 286, 0, 0, aut3) -- fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 4, 1) giveWeapon ( source, 44, 70) giveWeapon ( source, 25, 80) giveWeapon ( source, 29, 130) giveWeapon ( source, 34, 1000) end addEvent( "spawnssniper", true ) -- addEventHandler( "spawnssniper", root, spawnssniper ) -- function spawns141 (prevA, curA, spawn) -- spawnPlayer (source, -2516.892578125, -620.55859375, 132.71688842773, 1.0739440917969, 284, 0, 0, aut4) -- fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 3, 1) giveWeapon ( source, 24, 1300) giveWeapon ( source, 31, 1300) end addEvent( "spawns141", true ) -- addEventHandler( "spawns141", root, spawns141 ) -- --Civilians-- function spawncivi (prevA, curA, spawn) -- spawnPlayer (source, 2589.5673828125, 2295.3046875, 10.8203125, 175.04510498047, 101, 0, 0, civ1) -- fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 2, 1) giveWeapon ( source, 22, 133) giveWeapon ( source, 25, 250) end addEvent( "spawncivi", true ) -- addEventHandler( "spawncivi", root, spawncivi ) -- function spawnrebels (prevA, curA, spawn) -- spawnPlayer (source, 1112.1708984375, -1187.06640625, 18.343454360962, 87.460754394531, 47, 0, 0, rebels) -- fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 9, 1) giveWeapon ( source, 22, 133) giveWeapon ( source, 25, 100) giveWeapon ( source, 30, 1000) end addEvent( "spawnrebels", true ) -- addEventHandler( "spawnrebels", root, spawnrebels ) function spawnsrebel (prevA, curA, spawn) -- spawnPlayer (source, 1112.1708984375, -1187.06640625, 18.343454360962, 87.460754394531, 47, 0, 0, srebel) -- fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 4, 1) giveWeapon ( source, 34, 1000) giveWeapon ( source, 23, 100) end addEvent( "spawnsrebel", true ) -- addEventHandler( "spawnsrebel", root, spawnsrebel ) --Gangs-- --red vs blue-- --Gang Privates-- function spawnpeF (prevA, curA, spawn) -- if ( getElementData(source, "gang") == "USRT" ) then spawnPlayer (source, 838.50231933594, 3501.4523925781, 7.8848686218262, 176.67108154297, 282, 0, 0, clan1) -- fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 3, 1) giveWeapon ( source, 24, 9000) giveWeapon ( source, 34, 9000) giveWeapon ( source, 31, 9000) giveWeapon ( source, 27, 9000) giveWeapon ( source, 16, 40) giveWeapon ( source, 46, 1) giveWeapon ( source, 29, 9000) else outputChatBox ("you are not in USRT Group!",source, 14, 62, 68) end end addEvent( "spawnpeF", true ) -- addEventHandler( "spawnpeF", root, spawnpeF ) -- function spawnBb (prevA, curA, spawn) -- if ( getElementData(source, "gang") == "B&B" ) then spawnPlayer (source, 2594.0546875, 2808.98046875, 10.8203125, 88.081481933594, 292, 0, 0, clan2) -- fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 5, 1) giveWeapon ( source, 25, 100) giveWeapon ( source, 16, 5) giveWeapon ( source, 31, 600) else outputChatBox ( "you are not in B&B Group!",source, 147, 2, 2 ) end end addEvent( "spawnBb", true ) -- addEventHandler( "spawnBb", root, spawnBb ) -- function spawnPs (prevA, curA, spawn) -- if ( getElementData(source, "gang") == "Partysquad" ) then spawnPlayer (source, 1257.072265625, -794.115234375, 88.3125, 178.81896972656, 7, 0, 0, clan3) -- fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 10, 1) giveWeapon ( source, 29, 500) giveWeapon ( source, 16, 5) giveWeapon ( source, 24, 100) else outputChatBox ( "you are not in Partysquad Group!",source, 0, 230, 255 ) end end addEvent( "spawnPs", true ) -- addEventHandler( "spawnPs", root, spawnPs ) -- function spawnadminP (prevA, curA, spawn) -- local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then spawnPlayer (source, 2007.37890625, 2907.80859375, 47.82311630249, 91.619140625, 217, 0, 0, adminP) -- fadeCamera (source, true) setCameraTarget (source, 2066.0576171875, 1253.369140625, 36.72605) giveWeapon ( source, 3, 1) giveWeapon ( source, 24, 9000) giveWeapon ( source, 34, 9000) giveWeapon ( source, 31, 9000) giveWeapon ( source, 27, 9000) giveWeapon ( source, 38, 9000) else outputChatBox("You are not in Admin group!",source, 26, 152, 182) end end addEvent( "spawnadminP", true ) -- addEventHandler( "spawnadminP", root, spawnadminP ) -- function spawnfcl (prevA, curA, spawn) -- spawnPlayer (source, -1907.3154296875, -1672.3154296875, 23.015625, 271.44061279297, 20, 0, 0, fcl) -- fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 32, 9999) giveWeapon ( source, 24, 150) giveWeapon ( source, 31, 600) giveWeapon ( source, 34, 150) giveWeapon ( source, 27, 150) end addEvent( "spawnfcl", true ) -- addEventHandler( "spawnfcl", root, spawnfcl ) function spawnbwc (prevA, curA, spawn) -- spawnPlayer (source, 3213.5900878906, -320.54452514648, 7.8867297172546, 143.52484130859, 283, 0, 0, bwc) -- fadeCamera (source, true) setCameraTarget (source, source) giveWeapon ( source, 3, 1) giveWeapon ( source, 29, 500) giveWeapon ( source, 31, 600) giveWeapon ( source, 27, 150) end addEvent( "spawnbwc", true ) -- addEventHandler( "spawnbwc", root, spawnbwc ) function setCameraOnPlayerJoin () fadeCamera(source, true, 5) setCameraMatrix(source, 2066.0576171875, 1253.369140625, 36.72605, 2175.0673828125, 1283.69140625, 35.91672134) end addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin) Edited June 13, 2014 by Guest Link to comment
Et-win Posted June 13, 2014 Share Posted June 13, 2014 Is this even your own script? Because you say blips don't appear means you 'know' that they have to, but I don't see any 'createBlip' code in your script. Link to comment
Bean666 Posted June 13, 2014 Author Share Posted June 13, 2014 it's not mine , but i modified it tons harder than it was made the spawn etcs is mine , but the GUI isnt mine just downloaded. so i didnt say either that it is mine. Link to comment
-.Paradox.- Posted June 13, 2014 Share Posted June 13, 2014 it's not mine , but i modified it tons harder than it was made the spawn etcs is mine , but the GUI isnt mine just downloaded. so i didnt say either that it is mine. So, what are you trying to do exactly? Link to comment
Bean666 Posted June 13, 2014 Author Share Posted June 13, 2014 I just need help on creating blips with the color of the player. Link to comment
Cadell Posted June 13, 2014 Share Posted June 13, 2014 you can use this code in server side local blip = createBlipAttachedTo(player, 0, 2, r, g, b, 255, 0, 300, getRootElement()) where rbg you can define player blip color code 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