-
Posts
1,363 -
Joined
-
Last visited
Everything posted by Max+
-
You Can't see it ? Skype : Mr.PresTege
-
i didn't understand you , what you mean ? i Need if i kill player create Pickup weapons , every time i kill a plyer ,
-
Hi Guys i tryed make a pick show after player die a weapon pick up if any player take it it go and give him ammo , i killed my self and no pick up showing , function destroyDeathPickup ( pickup ) if ( isElement ( pickup ) ) then removeEventHandler ( "onPickupUse", pickup) destroyElement ( pickup ) end end addEventHandler ( "onPlayerWasted", root, function ( ) local timeout = 60000 local x, y, z = getElementPosition ( source ) local currentweapon = getPedWeapon ( source ) local totalammo = getPedTotalAmmo ( source ) local pickup = createPickup ( x, y, z, 2, currentweapon, 50, totalammo ) addEventHandler ( "onPickupUse", pickup, onDeathPickupHit ) setTimer( destroyDeathPickup, timeout, 1, pickup ) end )
-
Hello i got problem with i have a skin selector if i select skin 60 he always give me cj skin witch is 0 The Script, ped = createPed ( id, 2749.7502441406,-2232.7170410156,61.727611541748,60 ) addEventHandler('onClientGUIClick', root, function ( ) if ( source == Spawn_Button ) then local skin = getElementModel(ped) triggerServerEvent('onClientWatnsToSpawn', localPlayer,skin) playSoundFrontEnd ( 18 ) stopSound(Intro) showCursor(false) showChat(true) showPlayerHudComponent ( "all", true ) guiSetVisible(Left_Button,false) guiSetVisible(Right_Button,false) guiSetVisible(Spawn_Button,false) end end ) local spawns = { { 238.6613311767,141.05133056641,1003.0234375 }; { 190.87297058105,158.49531555176,1003.0234375 }; { 298.23620605496,172.01306152344,1007.171875 }; }; addEvent('onClientWatnsToSpawn', true) addEventHandler('onClientWatnsToSpawn', root, function () if not isElement(source) then return end local x, y, z = unpack(spawns[math.random(#spawns)]) setTimer ( spawnPlayer,3000,1,source, x, y, z); setTimer ( fadeCamera, 3000, 1, source, true, 0.5 ); setTimer ( setCameraTarget, 3000, 1, source, source ); showCursor ( source, false ); end ); addEventHandler ( 'onPlayerWasted', root, function (skin) fadeCamera ( source, false, 1.0, 0, 0, 0 ); setTimer ( fadeCamera, 3500, 1, source, true, 0.5 ); local x, y, z = unpack(spawns[math.random(#spawns)]); setTimer ( spawnPlayer,3000,1,source, x, y, z); end );
-
طيب ريترن تيبل بس انت ماسويت تيبل
-
" درينا انك خبره .. بس وش الفايدة هو ماتعلم شيء هالحين كلها " نسخ + لصق اسف والله ولأيهمك مره ثأنية احد الفنكشنات بس ,
-
addEventHandler('onClientMarkerHit', marker, function( Hit ) if getElementType(Hit) == 'player' then guiSetVisible(Name, true) end end )
-
Pain for _ v , in nex غلط next تستخدم في التيبل بس , Its first argument is a table and its second argument is an index in this table خله for _v, in pairs do ,
-
Fixed , Topic Closed ,
-
Nope no Spawn Skin = 0 cj , i think i know the problem should i put id on the spawn table on server side or after x,y, z on setTimer(spawnPlayer ,
-
attempt to skinID a number value
-
addEventHandler('onPlayerSpawn', root, function ( ) if(getPlayerSerial(source) == 'MMMMMM' ) then giveWeapon(source, 31, 200 ) --- M4 with 200 ammo outputChatBox('You Have Got Super M4', source, 255, 0 ,0 ) triggerEvent('onPlayerDamage', source) end end ) ----------- addEvent('onPlayerDamage', true) addEventHandler('onPlayerDamage', root, function(i,w) if (w == 31) then killPed(source,i,w) end end) Try It ,
-
Yes i want all MTa skins it's alreay add in onClientGUIClik , if startSkin == 0 then 1 2 3 ever time +1 or ...
-
i alredy Tryed that , See , StartSkin = 0 function start () skin = createPed ( StartSkin, 2749.7502441406,-2232.7170410156,61.727611541748,60 ) ------------------------- addEventHandler('onClientGUIClick', root, function ( ) if ( source == spawnskin ) then local Model = getElementModel(skin) triggerServerEvent('onClientWatnsToSpawn', getLocalPlayer(), Model) ---------------------------------------------------------------- it's give me Cj skin addEventHandler('onClientGUIClick',root, function ( ) if( source == rnextskin ) then if StartSkin == 312 then StartSkin = -1 elseif StartSkin == 2 then StartSkin = 8 end StartSkin = StartSkin + 1 setElementModel(skin,StartSkin) end addEventHandler('onClientGUIClick', root, function ( ) if ( source == lnextskin ) then if StartSkin == 0 then StartSkin = 313 elseif StartSkin == 9 then StartSkin = 3 end StartSkin = StartSkin - 1 setElementModel(skin,StartSkin) end
-
it's ped look to you Inbox i'v sent the script ,
-
Oh , if You Can Help Me with This i tryed fix it but i couldn't the problem is when i select skin for example id 60 and when i spawn it dosnt give me the skin i have selected it's set my skin to 0 cj StartSkin = 0 triggerServerEvent('onClientWatnsToSpawn', getLocalPlayer(), StartSkin) -----------------------
-
Thank's Man it's Working Great is player a bug now that's way the script wont working ?
-
خخخخخخخخخخ ابو سرأج يقصد الايفنت اللي يشغله ايش ! ضغط زر ولا عند نشغيل المود ولا عند ماركر نوع تشغيل السكربت ايش ,
-
Hello Guys when i press the button spawn , triggerServerEvent for spwn but it didn't spawn me , and the spawn point in Interior 3 , local spawns = { { x = 238.6613311767, y = 141.05133056641, z = 1003.0234375 }; { x = 190.87297058105, y = 158.49531555176, z = 1003.0234375 }; { x = 298.23620605496, y = 172.01306152344, z = 1007.171875 } } addEvent('onClientWatnsToSpawn', true) addEventHandler('onClientWatnsToSpawn', root, function (player) if not isElement(player) then return end x, y, z = unpack(spawns[math.random(#spawns)]) setTimer ( spawnPlayer,3000,1,player, x, y, z,0,0,3,0 ); setTimer ( fadeCamera, 3000, 1, player, true, 0.5 ) setTimer ( setCameraTarget, 3000, 1, player, player ) showCursor ( player, false ) end ) addEventHandler ( 'onPlayerWasted', root, function (player) fadeCamera ( player, false, 1.0, 0, 0, 0 ); setTimer ( fadeCamera, 3500, 1, player, true, 0.5 ); x, y, z = unpack(spawns[math.random(#spawns)]) setTimer ( spawnPlayer,3000,1,player, x, y, z,0,0,3,0 ); end )
-
اذا انت مسوي سكربت وتشغله على سيرفرك وماتبيه ينزل في مجلد الاعبين عشان ماينفك , تحط ذا في Meta.xml true = ماينزل الملف في المجلد false = ينزل في المجلد
-
--Client guiGetText -- event triggerServerEvent onClientGUIClick -- Server getPlayerMoney getPlayerFromName givePlayerMoney takePlayerMoney -- event addEvent addEventHandler
