NotAvailable
Members-
Posts
595 -
Joined
-
Last visited
Everything posted by NotAvailable
-
go to: MTA San Andreas > Server > Mods > Deathmatch > Resources > Play > Broph.lua
-
I think he means like: First you spawn there & when you die spawnpoint 2 right?
-
Ain't you Maurize's scripter? If yes: I know him he was admin on my server.
-
Ok, Sorry. i ask ^^
-
k thanks
-
Hi, i remade Benxamix2's Ranking system but when a player on my server kills a zombie i get 1 kill to? here is the code: addEvent("onZombieWasted") addEventHandler( "onZombieWasted", getRootElement(), function (killer) local achievement1 = getAccountData(player,"Achievement: First Weapon") local achievement2 = getAccountData(player,"Achievement: All Ranks") local achievement3 = getAccountData(player,"Achievement: Million Dollar Man") local achievement4 = getAccountData(player,"Achievement: All Achievements") local player = getPlayerAccount ( killer ) local myRank = getAccountData(player,"rank") local zombieKills = getAccountData(player, "zombieKills") if (myRank == "" or myRank == nil or myRank == false) then myRank = "Coward" end if (zombieKills == "" or zombieKills == nil or zombieKills == false) then zombieKills = 0 end if look == nil then look = 0 display = textCreateDisplay() textDisplayAddObserver (display,killer) kills = textCreateTextItem ("Kills: "..zombieKills,0.8,0.5,"medium",255,255,255,255,1.5) rank = textCreateTextItem ("Rank: "..myRank,0.8,0.53,"medium",255,255,255,255,1.5) textDisplayAddText (display,kills) textDisplayAddText (display,rank) elseif look == 0 then textItemSetText (kills,"Kills: "..zombieKills) textItemSetText (rank,"Rank: "..myRank) textItemSetText (kills,"Kills: "..zombieKills) textItemSetText (rank,"Rank: "..myRank) end if (getPlayerMoney(killer) >= 100000) then setAccountData (player,"Achievement: Million Dollar Man","true") end if achievement1 == true then if achievement2 == false then if achievement3 == false then setAccountData(player,"Achievement: All Achievements","true") end end end if getAccountData(player,"Achievement: All Achievements") then setAccountData (player,"Permission to get out","true") end givePlayerMoney (killer, 25) setAccountData (player,"zombieKills",zombieKills+1) if (getAccountData (player,"zombieKills") == 10) then setAccountData (player,"rank","Newbie") outputChatBox ("New rank! "..getPlayerName(killer).." Has been promoted to: Newbie") outputChatBox ("Congratulations, You have been given 8000$ For your first rank!",killer,0,255,0) givePlayerMoney (killer,8000) elseif (getAccountData (player,"zombieKills") == 50) then setAccountData (player,"rank","Killer") outputChatBox ("New rank! "..getPlayerName(killer).." Has been promoted to: Killer") outputChatBox ("Congratulations, You have been given 4500$ For your new rank!",killer,0,255,0) givePlayerMoney (killer,4500) elseif (getAccountData (player,"zombieKills") == 500) then setAccountData (player,"rank","Soldier") outputChatBox ("New rank! "..getPlayerName(killer).." Has been promoted to: Soldier") outputChatBox ("Congratulations, You have been given 2300$ For your new rank!",killer,0,255,0) givePlayerMoney (killer,2300) elseif (getAccountData (player,"zombieKills") == 1000) then setAccountData (player,"rank","Expert") outputChatBox ("New rank! "..getPlayerName(killer).." Has been promoted to: Expert") outputChatBox ("Congratulations, You have been given 1700$ For your new rank!",killer,0,255,0) givePlayerMoney (killer,1700) elseif (getAccountData (player,"zombieKills") == 1800) then setAccountData (player,"rank","Assassin") outputChatBox ("New rank! "..getPlayerName(killer).." Has been promoted to: Assassin") outputChatBox ("Congratulations, You have been given 1200$ For your new rank!",killer,0,255,0) givePlayerMoney (killer,1200) elseif (getAccountData (player,"zombieKills") == 3000) then setAccountData (player,"rank","General") outputChatBox ("New rank! "..getPlayerName(killer).." Has reached max lvl: General !") outputChatBox ("Congratulations, For your last rank you have been given: 20 000 MORE RANKS COMING SOON!",killer,0,255,0) givePlayerMoney (killer,20000) end end )
-
When i enter the anti zombie zone with skin 285. I still die while i did so skin 285 CAN enter
-
This is my anti zombie zone But when i enter with skin 285 i die to? While i did: if skin == 115 or 285 then Here is the code: a51gate1 = createObject ( 980, 1500.7756347656, -1441.1220703125, 9.4062042236328, 0, 0, 272 ) a51col = createColCuboid ( -66.439483642578, 1479.7907714844, 12.388235092163, 150, 150, 100 ) function opena51gates(hitPlayer,thePlayer) local skin = getElementModel (hitPlayer) if skin == 115 or 285 then moveObject (a51gate1, 1000, 1500.7756347656, -1441.1220703125, 9.4062042236328 ) else killPed (hitPlayer) end end addEventHandler( "onColShapeHit", a51col, opena51gates ) function closea51gates(hitPlayer,thePlayer) local skin = getElementModel (hitPlayer) if not skin == 115 or 285 then killPed (hitPlayer) moveObject (a51gate1, 1000, 1500.7756347656, -1441.1220703125, 9.4062042236328 ) end end addEventHandler( "onColShapeLeave", a51col, closea51gates ) ] Regards, Jesseunit
-
[HELP] What means: <eof>expected near end ?
NotAvailable replied to NotAvailable's topic in Scripting
is this 1 good? 0 errors a51gate1 = createObject ( 2929, 215.99548339844, 1875.40234375, 13.938992500305, 0, 0, 0 ) a51col = createColCircle ( 213.94564819336, 1875.40234375, 13.938992500305, 7 ) function opena51gates(hitPlayer,thePlayer) local skin = getElementModel (hitPlayer) if skin == 285 then moveObject (a51gate1, 5000, 218.99548339844, 1875.40234375, 13.938992500305 ) else killPed (hitPlayer) end end addEventHandler( "onColShapeHit", a51col, opena51gates ) function closea51gates(hitPlayer,thePlayer) local skin = getElementModel (hitPlayer) if not skin == 285 then killPed (hitPlayer) moveObject (a51gate1, 5000, 215.99548339844, 1875.40234375, 13.938992500305 ) end end addEventHandler( "onColShapeLeave", a51col, closea51gates ) -
Hi, i use 50p's .lua scripting editor. EDIT: Thread can be closed i fixed it ^^ i scripted a gate but im adding, when a zombie tries to get trough the gate he dies. but im getting a error in the sript editor: ''expected near 'end' Line: 142 End = line 146 This is the gate line: function createGate () Gate2 = createObject ( 980 ,-302.7734375, 1507.1533203125, 77.136161804199, 0, 0, 0 ) end addEventHandler ("onResourceStart", getResourceRootElement ( getThisResource () ), createGate ) function openGate ( ) moveObject ( Gate2, 3000,-302.7734375, 1507.630859375, 71.136161804199 ) else killPed(hitPlayer) setTimer (movingGateBackearone, 5000, 1 ) end addCommandHandler ("bigeargate1", openGate) function movingGateBackearone () moveObject ( Gate2, 4000 ,-302.7734375, 1507.630859375, 77.136161804199 )
-
k.
-
Maddogs Tutorial is better
-
Ok! thankyou. you really helped me 60% of all things i need to learn about scripting.
-
but what do i have to save 3 times?
-
k thanks
-
Hi, Im trying to make a safe zone for my server. But everytime i got the wrong coordinates/position So, Can someone explain me how those CollShape coordinates work? here is the line: g_base_col = createColCuboid ( 536.44488525391, -2651.2810058594, 0, 100, 100, 1000 )
-
You added it in meta.xml to?
-
Cool. So. Slothman. Can i place spawnpoints in the Map Editor, And will they still spawn random? My streaming is 1
-
k thanks
-
[WIP][GM] Resident Evil 3 Project - Looking for help...
NotAvailable replied to 12p's topic in Resources
SLothman... How does your SlothBot work? I readed Wiki + Forum Plenty times... But still not understand it -
This good? This is how you're supposed to ask for help. Yh, sorry i was in a hurry
-
This good?
-
Ok, this is a rank system for my zombie server. 0 Errors, But when i kill 10 zombies i wont rank up? And the text what supposed to be on the scoreboard is not on the scoreboard. here is the code: addEvent("onZombieWasted") addEventHandler( "onZombieWasted", getRootElement(), function (killer) local player = getPlayerAccount ( killer ) local myRank = getAccountData(player,"rank") zombieKills = getAccountData(player, "zombieKills") if (zombieKills == "" or zombieKills == nil or zombieKills == false) then zombieKills = 0 end if (look == "" or look == nil or look == false) then look = 0 display = textCreateDisplay() textDisplayAddObserver (display,killer) kills = textCreateTextItem ("Kills: "..zombieKills,0.8,0.5,"medium",255,255,255,255,1.5) rank = textCreateTextItem ("Rank: "..myRank,0.8,0.53,"medium",255,255,255,255,1.5) textDisplayAddText (display,kills) textDisplayAddText (display,rank) elseif look == 0 then textItemSetText (kills,"Kills: "..zombieKills) textItemSetText (rank,"Rank: "..myRank) end givePlayerMoney (killer, 25); setAccountData (player,"zombieKills",zombieKills+1) if (getAccountData (player,"zombieKills") == 10) then setAccountData (player,"rank","Trainee") outputChatBox ("New rank! "..getPlayerName(killer).." Has been promoted to: Trainee!") outputChatBox ("Congratulations for your first rank! You get $500 as reward.",killer,0,255,0) givePlayerMoney (killer,500) elseif (getAccountData (player,"zombieKills") == 100) then setAccountData (player,"rank","Beginner") outputChatBox ("New rank! "..getPlayerName(killer).." Has been promoted to: Beginner!") outputChatBox ("Congratulations for your new rank! You get $1000 as reward.",killer,0,255,0) givePlayerMoney (killer,1000) elseif (getAccountData (player,"zombieKills") == 200) then setAccountData (player,"rank","Survivor") outputChatBox ("New rank! "..getPlayerName(killer).." Has been promoted to: Survivor!") outputChatBox ("Congratulations for your new rank! You get $2000 as reward.",killer,0,255,0) givePlayerMoney (killer,2000) elseif (getAccountData (player,"zombieKills") == 500) then setAccountData (player,"rank","Expert") outputChatBox ("New rank! "..getPlayerName(killer).." Has been promoted to: Expert!") outputChatBox ("Congratulations for your new rank! You get $5000 as reward.",killer,0,255,0) givePlayerMoney (killer,5000) elseif (getAccountData (player,"zombieKills") == 1000) then setAccountData (player,"rank","Assassin") outputChatBox ("New rank! "..getPlayerName(killer).." Has been promoted to: Assassin!") outputChatBox ("Congratulations for your new rank! You get $7000 as reward.",killer,0,255,0) givePlayerMoney (killer,7000) elseif (getAccountData (player,"zombieKills") == 5000) then setAccountData (player,"rank","Master") outputChatBox ("New rank! "..getPlayerName(killer).." Has been promoted to: Master!") outputChatBox ("Congratulations! You have reached the last rank! You win: 1 000 000 !",killer,0,255,0) givePlayerMoney (killer,1000000) end end ) Regards, Jesse
-
[WIP][GM] Resident Evil 3 Project - Looking for help...
NotAvailable replied to 12p's topic in Resources
Ok -
------------------------------
