SoMoRay
Members-
Posts
169 -
Joined
-
Last visited
Details
-
Gang
None
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
SoMoRay's Achievements
Busta (15/54)
0
Reputation
-
Name : Abdulla Email : [email protected] Age : 16 From : Bahrain
-
local Team = createTeam ( "Alone", 255, 0, 0 ) setTeamFriendlyFire ( Team, false ) local policeTeam = createTeam ( "Police", 0, 0, 255 ) setTeamFriendlyFire ( policeTeam, false ) addEventHandler("onResourceStart",resourceRoot, function () setTimer(BlipT,1000,0) setTimer(BlipP,1000,0) end ) function BlipT() if source~=resource then return end setTeamFriendlyFire ( Team, false ) local players = getPlayersInTeam ( getTeamFromName ( "Alone" ) ) if #players == 0 then return end --ends the script if there's no players on the police team for _, player in ipairs ( players ) do createBlipAttachedTo ( player , 0 , 2 , 255 , 0 , 0 , 255 ) end end -------------------- police function BlipP() if source~=resource then return end local players = getPlayersInTeam ( getTeamFromName ( "Police" ) ) if #players == 0 then return end --ends the script if there's no players on the police team for _, player in ipairs ( players ) do createBlipAttachedTo ( player , 0 , 2 , 0 , 0 , 255 , 255 ) end end addEvent ( "spawnPed", true ) addEventHandler ( "spawnPed", root, function ( thePed ) if ( thePed == 2 ) then spawnPlayer ( source, 1485.0311279297, -2234.9086914063, 13.546875, 0, 2, 0, 0, Team ) setCameraTarget ( source, source ) elseif ( thePed == 280 ) then spawnPlayer ( source, 1568.5963134766, -1691.4530029297, 5.890625, 0, 280, 0, 0, policeTeam ) setCameraTarget ( source, source ) end end ) ------------------------------- kill ------------------------------------ function commitSuicide ( sourcePlayer ) killPed ( sourcePlayer, sourcePlayer ) end addCommandHandler ( "kill", commitSuicide ) ------------------------------------
-
Are You Main I Do Like that ? : local Team = createTeam ( "Alone", 255, 0, 0 ) setTeamFriendlyFire ( Team, false ) local policeTeam = createTeam ( "Police", 0, 0, 255 ) setTeamFriendlyFire ( policeTeam, false ) addEventHandler("onResourceStart",resourceRoot, function () setTimer(BlipT,1000,1) setTimer(BlipP,1000,1) end ) function BlipT() if source~=resource then return end setTeamFriendlyFire ( Team, false ) local players = getPlayersInTeam ( getTeamFromName ( "Alone" ) ) if #players == 0 then return end --ends the script if there's no players on the police team for _, player in ipairs ( players ) do createBlipAttachedTo ( player , 58 , 2 , 255 , 0 , 0 , 255 ) end end -------------------- police function BlipP() if source~=resource then return end local players = getPlayersInTeam ( getTeamFromName ( "Police" ) ) if #players == 0 then return end --ends the script if there's no players on the police team for _, player in ipairs ( players ) do createBlipAttachedTo ( player , 58 , 2 , 0 , 0 , 255 , 255 ) end end
-
local Team = createTeam ( "Alone", 255, 0, 0 ) setTeamFriendlyFire ( Team, false ) local policeTeam = createTeam ( "Police", 0, 0, 255 ) setTeamFriendlyFire ( policeTeam, false ) addEventHandler("onResourceStart",resourceRoot,function() if source~=resource then return end setTeamFriendlyFire ( Team, false ) local players = getPlayersInTeam ( getTeamFromName ( "Alone" ) ) if #players == 0 then return end --ends the script if there's no players on the police team for _, player in ipairs ( players ) do createBlipAttachedTo ( player , 58 , 2 , 255 , 0 , 0 , 255 ) end end) -------------------- police addEventHandler("onResourceStart",resourceRoot,function() if source~=resource then return end local players = getPlayersInTeam ( getTeamFromName ( "Police" ) ) if #players == 0 then return end --ends the script if there's no players on the police team for _, player in ipairs ( players ) do createBlipAttachedTo ( player , 58 , 2 , 0 , 0 , 255 , 255 ) end end)
-
see guys this is the full code for createTeam with the blip addEventHandler("onResourceStart",resourceRoot, function() Team2 = createTeam ( "Police", 0, 0, 255 ) setTeamFriendlyFire ( Team2, false ) for _, playersP in ipairs ( getPlayersInTeam ( getTeamFromName ( "Police" ) ) ) do createBlipAttachedTo ( playersP , 0 , 2 , 0 , 0 , 255 , 255 ) end end) Edit : there is no any bug in debugscript i be crazy with him I saw non eror but I don't know why he didn't work fine ! .
-
hi guys what wrong he did't create blips to team police for _, playersP in ipairs ( getPlayersInTeam ( getTeamFromName ( "Police" ) ) ) do createBlipAttachedTo ( playerP , 0 , 2 , 0 , 0 , 255 , 255 ) end
-
بعد مايطلع شيء كلنت؟ شغال مود الداتا؟ ديبوق وش يقول ؟ ERROR: exports Call to non-running client resource (drawData) [string "?"] + انا سويت ملف lua جديد وضعته داخل ملف المود وضفته للميتا كلنت
-
ادري ماهو دقيق بس انا جربت سويت مثل هذه بس ماطلع لي شيء addEventHandler ( "onClientPlayerChangeNick", root, function ( oldNick, newNick ) exports["drawData"]:outputDraw ( '* " .. oldNick .. " is now known as " .. newNick .. ".',255,255,255,true ) end )
