-
Posts
4,121 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Kenix
-
not work edit: I do not want to count and compare.
-
not working properly, it must scan if that team is 0 players endgame and he immediately crawls edit: He has to check if 0 then.
-
script not working the logic of the script: to crawl if the team "survivors"has run out of players then run a function endgame. tried to debug script errors no =( g_Root = getRootElement() function mapstart() local survivorsCount = 0 for i, player in ipairs(getPlayersInTeam(teamSurvivor)) do if survivorsCount ~= 0 then Endgame(teamzombie, true) end end end addEventHandler ( "onGamemodeMapStart", g_Root, mapstart )
-
how to check if attacker ( at onClientPlayerDamage ) is...
Kenix replied to Fabio(GNR)'s topic in Scripting
Read carefully. -
how to check if attacker ( at onClientPlayerDamage ) is...
Kenix replied to Fabio(GNR)'s topic in Scripting
try this Client: addEvent("god_mode",true) addEventHandler("god_mode",getLocalPlayer(), function() addEventHandler ( "onClientPlayerDamage", getRootElement(), cancelalldamage ) end) function cancelalldamage (thePlayer) if getPlayerTeam" class="kw2">getPlayerTeam" class="kw2">getPlayerTeam" class="kw2">getPlayerTeam ( thePlayer ) == teamfun then cancelEvent() end function canceldamag ( playerSource, thePlayer, attacker, weapon, bodypart, loss ) if getElementType ( attacker ) == "player" then if getPlayerTeam" class="kw2">getPlayerTeam" class="kw2">getPlayerTeam" class="kw2">getPlayerTeam ( thePlayer ) == teamfun then cancelEvent () end end end addEventHandler ( "onClientPlayerDamage", getRootElement(), canceldamag ) -
Can I make a mta custom dynamic objects? if possible, how.
-
Try this client addEvent ("onClientPlayerLogin",true) addEventHandler ("onClientPlayerLogin",getLocalPlayer(), function () destroyElement (background) showCursor (false) guiSetInputEnabled(false) end)
-
thanks, it's a great idea is very useful)
-
thanks a lot but there is a bug with one weapon and it is not in the script when I shoot from the spaz-12 is a player kick. [2010-12-26 21:07:05] QUIT: {O.J.}CARTER(RUS) left the game [Quit] P.S in the log says that it came out but he actually kicked.
-
the script does not work = ( function damageLibrary ( attacker, weapon, bodypart, loss ) if ( weapon == 4 ) then setElementHealth ( source, getElementHealth(source) - 50 ) elseif ( weapon == 6 ) then setElementHealth ( source, getElementHealth(source) - 100 ) end if ( weapon == 9 ) then setElementHealth ( source, getElementHealth(source) - 200 ) elseif ( weapon == 5 ) then setElementHealth ( source, getElementHealth(source) - 100 ) end if ( weapon == 24 ) then setElementHealth ( source, getElementHealth(source) - 200 ) elseif ( weapon == 25 ) then setElementHealth ( source, getElementHealth(source) - 200 ) end if ( weapon == 26 ) then setElementHealth ( source, getElementHealth(source) - 100 ) elseif ( weapon == 27 ) then setElementHealth ( source, getElementHealth(source) - 100 ) end if ( weapon == 28 ) then setElementHealth ( source, getElementHealth(source) - 20 ) elseif ( weapon == 29 ) then setElementHealth ( source, getElementHealth(source) - 25 ) end if ( weapon == 32 ) then setElementHealth ( source, getElementHealth(source) - 20 ) elseif ( weapon == 30 ) then setElementHealth ( source, getElementHealth(source) - 66 ) end if ( weapon == 31 ) then setElementHealth ( source, getElementHealth(source) - 40 ) elseif ( weapon == 33 ) then setElementHealth ( source, getElementHealth(source) - 100 ) end if ( weapon == 34 ) then setElementHealth ( source, getElementHealth(source) - 200 ) elseif ( weapon == 0 ) then setElementHealth ( source, getElementHealth(source) - 50 ) end end addEventHandler ( "onPlayerDamage", getRootElement (), damageLibrary )
-
Solidsnake14,he does not understand what he wants
-
Look survivors must hold out until the deadline if they do not hold on a zombie won and if they held out to win. P.s I badly write in English. EDIT.here's the problem with the test team won or not = (
-
read 28 line function onTimeElapsed() local teamSurvivor = getElementsByType("team") -- you were getting same teams in both tables table.sort(teamSurvivor, sortingfunction) -- sortingFunction i suppose if getElementData ( teamSurvivor[1], "Score" ) == getElementData ( teamSurvivor[2], "Score" ) then Endgame(false, true) -- your "draw" return outputChatBox ( "debug; zombie draw1;" ) end if Endgame(teamzombie,false) then else Endgame(teamSurvivor[1],false) -- send the Survivors to Endgame() function outputChatBox ( "debug; zombie draw;" ) --end end end function Endgame(winner,draw) for i,timer in ipairs(mapTimers) do if isTimer ( timer ) then killTimer ( timer ) end end outputChatBox ( "debug; 2;" ) mapTimers = {} destroyElement(g_MissionTimer) setTimer ( reboot, 6100, 1 ) if not teamSurvivor == winner then --------------- if you put a ~ = a surviving will win and if you put a zombie == how to fix it?? if draw then for i,player in ipairs(getElementsByType("player")) do -- add ( ) toggleAllControls(player,true,true,false) fadeCamera(player,false,10,0,0,0) end outputChatBox ( "debug; 3;" ) triggerClientEvent ( "onzombiewin", getRootElement()) outputChatBox("Выживших не осталось. Зомби победили!") announcementText:visible(true) announcementText:text("Выживших не осталось. Зомби победили!") announcementText:color(255,255,255,255) announcementText:sync() return else return end end outputChatBox ( "debug; 4;" ) for i,player in ipairs(getElementsByType("player")) do if teamSurvivor ~= winner then -- what is survivors now? outputChatBox ( "debug; sur;" ) setCameraTarget(player,winner) -- winner is TEAM toggleAllControls(player,true,true,false) end fadeCamera(player,false,10,0,0,0) end outputChatBox ( "debug; 5;" ) triggerClientEvent ( "onsurwin", getRootElement()) outputChatBox("Выжившие победили! Они пережили нападение") announcementText:visible(true) announcementText:text(getTeamName(winner).." - Выжившие победили! Они пережили нападение") announcementText:color(getTeamColor(winner)) announcementText:sync() outputChatBox ( "debug; wintext;" ) end
-
I do not know but have never tried it, I usually use dxscoreboard.
-
weapons screens yet here is a weapon but they may change.
-
Hello, I do make an ZombieMod CS:Source for MTA game mode.In this fashion there are elements of similarity to CS: Source, and has its own. I will release all BETA's I got. So I hope I can make it. The work progress are here down: HUD 50 % Chat 100 % skills 70 % save system 10 % weapons sounds 90 % weapons textures 100 % round system 99 % realism system 100 % level system 60 % skins 100 % maps 25 % help system 91 % anti cheat 95 % weather 100 % sounds atmosphere 100 % damage Library 100 % barricade system 100 % bug fixes 90 % Progress v2(1%) Do you want to help? Say it then down here. All help is welcome. Or add me on Skype :stalker-volk1 Made mod thank the following people:Aiboforcen,Solidsnake14,Scooby,Mx_Master,Lil_Toady,Dakkila,Citizen,AcitanoX,ecoxp.
-
1.https://community.multitheftauto.com/ind ... ils&id=950 2.https://wiki.multitheftauto.com/wiki/GUI_widgets 3. Open the meta and find it here <setting name = "* autopimp" value = "true" friendlyname = "Auto pimp" group = "Graphics" accept = "false, true" desc = "Set to true to apply a selection of visual upgrades to vehicles." /> and replaced <setting name = "* autopimp" value = "false" friendlyname = "Auto pimp" group = "Graphics" accept = "false, true" desc = "Set to true to apply a selection of visual upgrades to vehicles." />
-
work checked on the server! setTimer ( function () local randomPlayer = getRandomPlayer ( ) outputChatBox ( getPlayerName ( randomPlayer ).." Has win 1025$ " ) givePlayerMoney ( randomPlayer, 1025 ) end, 1000, 0 ) -- Put some time you want!
-
you LOL [2010-12-25 10:22:35] WARNING: Bad argument @ 'setTimer' (string-defined function)
-
local randomPlayer = getRandomPlayer ( ) outputChatBox ( getPlayerName ( randomPlayer ).." Has win 1025$ " ) givePlayerMoney ( randomPlayer, 1025 ) --give the player money according to the amount setTimer ( randomPlayer, 1000000, 1000 ) -- 1000 = 1 second I could be wrong.