abdalbaset
-
Posts
170 -
Joined
-
Last visited
Posts posted by abdalbaset
-
-
hello guys i have been workin lately on skin and it was my first time so i import GTA SA DFF file (skin num=230)and got some object from player.img and add it them to the skin that i made using 3Ds max but whene i add the skin to my gta file MTA keep crashing whene i get the skin
-
kills addEventHandler( "onPlayerWasted", getRootElement(), function( killer ) givePlayerMoney( killer, 100 ) kills=kills+1 end )
like that?
-
thanks man ,another thing how can i make counter to count players kills and show who is the top killer
-
-
-
marker =createMarker(-23.4414,-55.150,1002.5468,"cylinder", 1.5, 250,0,0, 255 ) setElementInterior( marker,6,-23.4414,-55.150,1003.5468) function output() outputChatBox ( "*To Rob this shop use /robshop", getRootElement(), 255, 0, 0, true ) end addEventHandler( "onMarkerHit", marker, output ) function rober(thePlayer, matchingDimension) if isElementWithinMarker(thePlayer, marker) then outputChatBox ( "robbery attempt success", getRootElement(), 0, 255, 0, true ) givePlayerMoney (thePlayer , 15000) setPlayerWantedLevel ( thePlayer, 6 ) destroyElement ( marker ) else outputChatBox("get in the marker to rob this shop", thePlayer, 255, 0, 0) end end addCommandHandler("robshop", rober)
here is my code i want the player to be able to rob the shop once every 5min,
-
-
-
local Col = createColCuboid(1290.5771,2100,11.0156, 300, 100, 30) local pArea1 = createRadarArea( 1290.5771,2100,200, 150, 32, 32,32) bool = false function shapeHit( thePlayer ) givePlayerMoney (thePlayer , 1000 ) end addEventHandler('onColShapeHit', Col,shapeHit) function onWasted() if isElementWithinColShape( source, Col ) bool = true end end addEventHandler ( "onPlayerWasted", getRootElement(), onWasted ) function onSpawn() if bool then --setElementPosition end end addEventHandler ( "onPlayerSpawn", getRootElement(), onSpawn )
it's not working i cant see the colshape on the map anymore
-
local Col = createColCuboid(1290.5771,2100,11.0156, 300, 100, 30) local pArea1 = createRadarArea( 1290.5771,2100,200, 150, 32, 32,32) bool = false function shapeHit( thePlayer ) givePlayerMoney (thePlayer , 1000 ) end addEventHandler('onColShapeHit', Col,shapeHit) function onWasted() if isElementWithinColShape( source, Col ) bool = true end end addEventHandler ( "onPlayerWasted", getRootElement(), onWasted ) function onSpawn() if bool then setElementPosition (--here??,1369.93,2194.938,9.757) end end addEventHandler ( "onPlayerSpawn", getRootElement(), onSpawn )
what should i put instead of "--here??" ,is that serverside or client side ,thanx for your help
-
?
-
where other safezones ?
Just one i am going to use it as DM area player get killed and respawn there
-
local Col = createColCuboid(1290.5771,2100,11.0156, 300, 100, 30) local pArea1 = createRadarArea( 1290.5771,2100,200, 150, 32, 32,32) function shapeHit ( thePlayer ) givePlayerMoney (thePlayer , 1000 ) end addEventHandler('onColShapeHit', Col,shapeHit)
that all what i made
-
Or do you mean safezones? Like a player gets killed randomly anywhere on the map and spawns within a colshape?
yeah exactly
-
use this: getPointFromDistanceRotation
i mean whene player die in the colshipe he get's respawn in it again ,i didnt understand how getPointFromDistanceRotation
works
-
hello guys,
how can i make respawn inside colshipe (example player got killed in the colshipe he will be respawned in it)
-
setPedStat
وين اجد ال
health?
-
شباب اريد فنكشن لما الاعب يدخل على السرفر الهيلثي يكون 200 )
health*
-
Well idk if this is the right place to post this, i am looking for any delux host supports or admin i have made an order 3 days ago and didnt get any thing if you got any solution please send it in pm ty for your time
Sloved
-
عملت اوردير ولم يصلني شئ عللى الايميل هل المشكلة بس عندي ولا حد ثاني واجه المشكلة يقدر يساعدني
-
يعني بدي استخدم متغير يعد كم مرة دخلت الماركير او لستخدام اخر
-
شباب اين اجد معلومات عن المتغيرات كيف اعرف متغير وكيفية استخدام المتغيرات واي شي عنها
-
thanx table so much but how can i make whene some one inside airplane hit the marker the marker work?
-
?
+
skin dff file
in Other
Posted
just solved it