
stefutz101
Members-
Posts
245 -
Joined
-
Last visited
Everything posted by stefutz101
-
Now nothing happen ... no errors or warns
-
function player_Wasted ( attacker ) if attacker and getElementType(attacker) == "player" and attacker ~= source then outputChatBox(getPlayerName(attacker).." killed "..getPlayerName (source),getRootElement(),255,255,255) end end addEventHandler ( "onPlayerWasted", getRootElement(), player_Wasted ) Error "outputChatBox(getPlayerName(attacker).." killed "..getPlayerName (source),getRootElement(),255,255,255)" Boolean value
-
ok , ty i will try And i will post result
-
grenadesConfig = { -- ["The weapon's name"] = {grenadeName = "Name grenades"}, ["M4"] = { grenadeName = "Grenade" }, ["AK-47"] = { grenadeName = "Grenade" }, } So i have this . How i can test if current gun is in that list ? I tried like this if ( getElementData ( localPlayer, grenadesConfig[weapon].grenadeName ) or 0 ) > 0 then . But works at all weapons ... .
-
Ok after 2 hours i do it . But i have a problem . Infinite bullets ...
-
I do it . But my new guns still don't have skins if i have weapon in hands , if i drop weapon it have skin ... .
-
So i must replace that 356(all from all gamemode) with another id and put skin on that id ?
-
Mihayy read up , i explain some things ...
-
I'm using bone_attach . How this resource can help me with my problem ?
-
If i replace m4 id ( 31 ) to another one i have errors in debugscript when i'm trying to equip weapon . (bad arg "giveweapon"[expected weapon-type at argument 2, got number "1208"). So yah i want to change m4 id ( 31 ) in 1208 ( a washing machine ) . Ok . So for replace model i know how : --m4 txd = engineLoadTXD ( "weapons/m4.txd" ) engineImportTXD ( txd, 1208 ) dff = engineLoadDFF ( "weapons/m4.dff", 1208 ) engineReplaceModel ( dff, 1208 ) But i dont know where i must change the m4 id ... . Pickups.lua M4 Test",356,1,90,2.4}, Here ?
-
So you want to say if i put a m4 skin on TV (or another object ) i can fire with that TV ? ... In inventory.lua i have this : .... ["M4 Test Mag"] = { {"M4 Test",31}, }, ... I looked : https://wiki.sa-mp.com/wiki/Weapons and that 31 is m4 id , so i must change that id with another one and put m4 skin on that id ? :D
-
I do not understand. So i must change m4 id with an interior id like ... tv , pc , clothings etc ? And put a m4 skin on it ? Example please ? ... Or try to explain it step by step ...
-
Hi again , i have a question . I added a new weapon in Dayz game mode , and i want to know how i can put 2 skins on the same gun . So if gun have the name "M4" = skin x "M4 Test " = skin y . Or i can use another id for guns ? Photo : http://postimg.org/image/r0ltm9uc1/ Thanks in advance !
-
Ok , thanks i will post if i will need help again
-
http://postimg.org/image/6udolz70z/ Hi , i work at a craft - system and i dont know something . What is name of client event what is called when someone choose a row from grid list ? onClientGUIClick - is for buttons only , no ? Thanks in advance !
-
And if you're right how i can fix it ?
-
Ok i have 4 days since i'm trying to fix those warns but i can't . Any help ? Please...
-
I found the resource . Thanks anyway.
-
In past i had a resource what move camera when you fire with m4 , ak-47 , mp5 but i can't find it . I don't know what name have that resource , any help , please ?
-
The same error . I replaced al function like your model but i still have warns
-
Hi , i have a mta Dayz server and i have some warns at slothbot . function spawnBot(x, y, z, rot, skin, interior, dimension, team, weapon, mode, modesubject) --checks the function commands to see if all neccesary parts are filled, sets defaults if not or returns false. if not x then return false end if not y then return false end if not z then return false end if not rot then return false end if not skin then skin = 0 end if not interior then interior = 0 end if not dimension then dimension = 0 end if isElement(team) == false then team = nil end if not weapon then weapon = 0 end if not mode then mode = "hunting" end if not modesubject then modesubject = nil end if mode == "following" then if not modesubject then return false end end if mode == "chasing" then if not modesubject then return false end end local slothbot = createPed (tonumber(skin),tonumber(x),tonumber(y),tonumber(z))--spawns the ped if isElement(slothbot) and getElementType(slothbot)== "ped" then if (slothbot ~= false) then triggerEvent ( "onBotSpawned", slothbot ) setTimer ( setElementData, 200, 1, slothbot, "slothbot", true ) -- makes it a bot setTimer ( setElementData, 200, 1, slothbot, "AllowFire", true ) -- makes it able to shoot when it wants setTimer ( assigncontroller, 300, 1, slothbot ) --sets the bots controller setTimer ( giveWeapon, 800, 1, slothbot, tonumber(weapon), 99999, true ) line 1160 setElementData(slothbot, "BotWeapon", tonumber(weapon)) if team ~= nil then setElementData(slothbot, "BotTeam", team) end setTimer ( setElementInterior, 100, 1, slothbot, tonumber(interior)) --sets interior setTimer ( setElementDimension, 100, 1, slothbot, tonumber(dimension)) --sets dimension --sets the mode if mode == "waiting" then setTimer ( setElementData, 600, 1, slothbot, "status", "waiting") elseif mode == "following" then setTimer ( setElementData, 400, 1, slothbot, "leader", modesubject ) setTimer ( setElementData, 600, 1, slothbot, "status", "following") elseif mode == "chasing" then setTimer ( setElementData, 400, 1, slothbot, "target", modesubject ) setTimer ( setElementData, 600, 1, slothbot, "status", "chasing") elseif mode == "guarding" then setTimer ( setBotGuard, 400, 1, slothbot, x, y, z) else setTimer ( setElementData, 600, 1, slothbot, "status", "hunting") line 1180 end return slothbot end end end I have warnings at all setTimer ( setElementData ... ) functions . Any help please ? I tried to put condition if slothbot exist then ... if isElement(slothbot) and getElementType(slothbot)== "ped" then but the same error . Photo http://postimg.org/image/gg4g6hck9/ Thanks in advance !
-
Fixed . I'm so stupid. if tonumber (msg)== tostring(number) then
-
Help , please ? ;(
-
Hi i have a problem . I created a command : /startevent 34 1000 So who guess the number ( 34 ) win 1000 $. And i dont know why don't give me money if i write the correct answer. if event == true then -- check if event is open if msg == tostring(number) then outputChatBox(getPlayerName(player).." a ghicit numarul si a primit "..tonumber(cash), root, 255,128, 0, true) setPlayerMoney(player,getPlayerMoney(player)+tonumber(cash)) number = nil end end Thanks in advance !