-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
I don't get what do you mean..
-
Yeah well, i guess he wants the Special versions i made for some servers
-
He didn't anything, i sent him the old code.. i guess he edited something wrong (like ever)
-
For anything you got to script it yourself or pay someone to make it for you (which is hard at this days)
-
Dear scripters, please help me with anti command flood
Castillo replied to GuyFromPast's topic in Scripting
Tell me what is exactly i think i can help -
Dear scripters, please help me with anti command flood
Castillo replied to GuyFromPast's topic in Scripting
lol i don't even... what is that? -
ye u mi550 no imperio hes not cookie he meant maybe if you are cookie?
-
Not needed to post all this, just a "thank you it works" its enough. i help everyone and they help me thats how it works or 100$ wtf??
-
maybe go back to mta wiki and re-think all again?
-
you are doing the script client side right? cause setElementCollisionsEnabled function its only client side.
-
give us more information, do you get any error? warning anything? /debugscript 3 in game to put debug on.
-
Dear scripters, please help me with anti command flood
Castillo replied to GuyFromPast's topic in Scripting
he can make it client side like i did one time -
your element data maybe is nil or something like that.
-
Not needed to post all this, just a "thank you it works" its enough. i help everyone and they help me thats how it works
-
Dear scripters, please help me with anti command flood
Castillo replied to GuyFromPast's topic in Scripting
maybe make 2 new functions? lock, unlock? local lock = 0 function lock() lock = 1 end function unlock() lock = 0 end when execute your function add, setTimer ( lock, 50, 1 ) setTimer ( unlock, 6000, 1 ) and also check if time its 1 if lock == 1 then outputChatBox("ERROR: You can fix once every 6 seconds.",255,0,0) and that should work? -
uhm you forgot a comma after "!" function wb ( playerSource, command, who ) outputChatBox ("# 808080 <# 00FFFF" .. getPlayerName (playerSource).."# 808080> Welcome Back, ".. getPlayerName (playerSource) .." ! ",getRootElement (), 255, 255, 255, true) end addCommandHandler ( "wb", wb )
-
I think you didn't understand DMC post.
-
try this maybe, addEventHandler("onPlayerJoin",getRootElement(), function () lifttargy = CreateObject(1301,-682.98144531,1017.06542969,10.673,0.00000000,0.00000000,0.00000000) liftmarkerje = createMarker(-682.98144531,1017.06542969,12,'cylinder',3,0,0,0,0) addEventHandler ('onMarkerHit', liftmarkerje, liftfel) addEventHandler ("onMarkerLeave",liftmarkerje, liftle) end) function liftfel (hitPlayer,matchingDimension) local skin = getElementModel (hitPlayer) if skin == 0 or skin == 285 then moveObject (lifttargy,10000,-682.98162842,1017.06610107,511.943,0.00000000,0.00000000,0.00000000) else killPed (hitPlayer) end end function liftle (hitPlayer,matchingDimension) moveObject (lifttargy,10000,-682.98144531,1017.06542969,10.673,0.00000000,0.00000000,0.00000000) end
-
addEventHandler("onPlayerJoin",getRootElement(), function () lifttargy = CreateObject(1301,-682.98144531,1017.06542969,10.673,0.00000000,0.00000000,0.00000000) liftmarkerje = createMarker(-682.98144531,1017.06542969,12,'cylinder',3,0,0,0,0) end) function liftfel (hitPlayer,matchingDimension) local skin = getElementModel (hitPlayer) if skin == 0 or skin == 285 then moveObject (lifttargy,10000,-682.98162842,1017.06610107,511.943,0.00000000,0.00000000,0.00000000) else killPed (hitPlayer) end end addEventHandler ('onMarkerHit', liftmarkerje, liftfel) function liftle (hitPlayer,matchingDimension) moveObject (lifttargy,10000,-682.98144531,1017.06542969,10.673,0.00000000,0.00000000,0.00000000) end addEventHandler ("onMarkerLeave",liftmarkerje, liftle) you put wrong syntax at function.
-
hey, i made a script that when you exit a vehicle it sets a timer and when you enter it kills it but the problem is this, all working fine but i'm using mabako's spray script and when he enters garage changes color etc it won't respawn, i have tryed setting colour via admin panel and that has no problem.
-
dunno if its needed to put the object into a function, i ever made it without function
-
well, the event must go after function not in function body, and also got a question, why you do onPlayerJoin make the object? addEventHandler("onPlayerJoin",getRootElement(), function () lifttargy = CreateObject(1301,-682.98144531,1017.06542969,10.673,0.00000000,0.00000000,0.00000000) liftmarkerje = createMarker(-682.98144531,1017.06542969,12,'cylinder',3,0,0,0,0) end) function liftfel (hitPlayer,matchingDimension)) local skin = getElementModel (hitPlayer) if skin == 0 or skin == 285 then moveObject (lifttargy,10000,-682.98162842,1017.06610107,511.943,0.00000000,0.00000000,0.00000000) else killPed (hitPlayer) end end addEventHandler ('onMarkerHit', liftmarkerje, liftfel) function liftle (hitPlayer,matchingDimension) moveObject (lifttargy,10000,-682.98144531,1017.06542969,10.673,0.00000000,0.00000000,0.00000000) end addEventHandler ("onMarkerLeave",liftmarkerje, liftle)
-
Why not play GTA:SA? it has better graphics more stuff etc, its better in my opinion.
-
Yeah, everyone keeps changing their nicks so would be nice to dectect their serial or something like that
-
nobody of you seems to understand (the last 2 persons) i have fixed it already, and what i wanted was to disable ALL teams friendy fire can close topic before it starts a fight
