- 
                
Posts
905 - 
                
Joined
 - 
                
Last visited
 
Everything posted by TwiX!
- 
	Don't reply if you don't know. -- For the first question, go to Admin Panel -> Resources tab -> Search for the resource "dxscoreboard" or "scoreboard", whatever the name of the scoreboard is and double click on it and set "Allow color codes in names" to "true". he not want color code. avian960 you can find it by yorself at: https://community.multitheftauto.com/
 - 
	слушай, умничать здесь не надо, если ты не знаешь как, не надо думать что это невозможно. во 2, зачем мне рассказывать как это сделать всем? бред не неси
 - 
	я спокойно могу украсть твои серверные скрипты(если нет нужной защиты,стоит узнать только твой http порт), обычному нубо скриптеру конечно это не под силу
 - 
	you need edit or comment textItemSetText(g_NotReadyTextItems[1], 'Waiting for other players...' ) and change it to trigger, and start learn lua, not copy other works
 - 
	sorry i don't accept sms payment,..
 - 
	yes it's client yes it's work yes trigger from server
 - 
	protected = "true" работает исключительно на клиентские .lua файлы! только на серверные
 - 
	i can help you tomorrow, tell me in msn or skype
 - 
	Hunters = 0 onReachedHunter = false function checkingNow(theGuy) if getElementData(theGuy,"state") == "alive" then if getElementData (theGuy,"onHaveCount") == false then Hunters = Hunters + 1 setElementData (theGuy,"onHaveCount",true) onReachedHunter = true end end end function checkForHunters(number,sort,model) if sort == "vehiclechange" then if model == 425 then setTimer(checkingNow,200,1,source) end end end addEventHandler("onPlayerPickUpRacePickup",getRootElement(),checkForHunters) function checkForOneAlive() local alivePlayers = getAlivePlayers() if getElementData (source,"onHaveCount") == true then Hunters = Hunters - 1 end if Hunters == 1 and onReachedHunter == true then triggerEvent ( "StartMap", getRootElement()) outputDebugString ('test '..Hunters) end end addEventHandler("onPlayerWasted", getRootElement(), checkForOneAlive) addEvent("onMapStarting") addEventHandler("onMapStarting", getRootElement(), function(mapInfo, mapOptions, gameOptions) Hunters = 0 onReachedHunter = false for i,thePlayers in ipairs(getElementsByType("player")) do setElementData(thePlayers, "onHaveCount", false) end end )
 - 
	try to check onPlayerWasted with outputDebugString
 - 
	open admin panel - p tab - resource find there reosource 'scoreboard' dobule click, search there "allow color codes" change to true restart this resource
 - 
	По-моему ZverCR обошел эту идею. можно удалять компилиные скрипты
 - 
	createBlip ( 1552.4996337891, -1677.3264160156, 15.1953125, 30 ) function createSAPDTeam () SAPDteam = createTeam ("police", 100, 149, 237) end addEventHandler ("onResourceStart", resourceRoot, createSAPDTeam) function joinSAPD() setPlayerTeam(source,SAPDteam) setElementModel(source, 280) giveWeapon ( source, 3 ) setAccountData( playeraccount, "Occupation", "police") outputChatBox("You are now policeman.",source,0,255,0) end addEvent("setSAPD", true) addEventHandler("setSAPD",root,joinSAPD) function policeJob ( attacker, attackerweapon, bodypart, loss ) theTeam = getPlayerTeam ( attacker ) theWL = getPlayerWantedLevel ( source ) theSkin = getElementModel ( attacker ) if (attackerweapon == 3) and (loss > 2 ) and (theWL > 0) then if getTeamName( theTeam ) == "police" or getTeamName( theTeam ) == "SWAT" or getTeamName( theTeam ) == "FBI" then setElementPosition (source, 4076.3999023438, -1788.5, 3.511967, true) theName = getPlayerName ( source ) theCop = getPlayerName ( attacker ) outputChatBox ( "You have been jailed by "..theCop.. " for 10 seconds.", source ) local playeraccount = getPlayerAccount ( attacker ) arrests = tonumber(getAccountData(playeraccount, "arrest")) setAccountData(playeraccount, "arrest", arrests + 1 ) givePlayerMoney (attacker, 100) setTimer ( setElementPosition, 10000, 1, source, 1544.4332275391, -1674.7698974609, 13.688399200439) setPlayerWantedLevel (source, 0) end end end addEventHandler ("onPlayerDamage", getRootElement(), policeJob)
 - 
	Your error not in the CODE..
 - 
	are you kidding me? search your error
 - 
	man code is working you're doing something wrong,you need restart resource on the publick server search your error
 - 
	did you refresh the script on publick server? and wait you trigger event from race to other resource?
 - 
	easy stunts. + over 9999999999 guys trolling this maps and this stunts, over 999 videos STOP DOING IT! 1/10
 - 
	show your all code, it's working on my server...
 - 
	it's working try triggerClientEvent("onPlayerWinTheRace", getRootElement(), player)
 
