Jump to content

Al3grab

Members
  • Posts

    431
  • Joined

Everything posted by Al3grab

  1. Al3grab

    Crash MTA 1.1

    reinstall DirectX , and if still crash show up .. download last nightly build link [DirectX] : http://www.microsoft.com/download/en/details.aspx?id=35 =D
  2. Hi , after i did some search in the forum ,i made a code and now it works , the code do : set Timer to remove Event Handler of the superBullets wich is "onClientWeaponFire" ,, the code : setTimer(function () removeEventHandler("onClientPlayerWeaponFire", root, superBullet) outputChatBox("Super Bullets Has End",255,255,0) end,20000,1, true) 20000 = 20 sec ' for test ' thanks ' Try ' for helping .. but ur fish didnt worked : p
  3. Try : thx for ur post .. but it didnt work .. and you didnt teached me how to catch you just gave me half fish
  4. Hi. i made Super Bullets in shop ,, when the player buy it he have Explosive Bullets .. now the super bullets work .. but i want to put a time that super bullets end .. i tried ' setTimer ' function but didnt work ' maybe i didnt made it right ' .. so i need help in this the code [ client-side ] local PlayerMoney = getPlayerMoney() if ( PlayerMoney > 10000 ) then takePlayerMoney(10000) outputChatBox("You Bought Super Bullets By 10000$",source,255,255,0) function superBullet(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if ( weapon == 24) then createExplosion(hitX, hitY, hitZ, 6, true, false, true) end if ( weapon == 23) then createExplosion(hitX, hitY, hitZ, 6, true, false, true) end if ( weapon == 22) then createExplosion(hitX, hitY, hitZ, 6, true, false, true) end if ( weapon == 31) then createExplosion(hitX, hitY, hitZ, 6, true, false, true) end if ( weapon == 30) then createExplosion(hitX, hitY, hitZ, 6, true, false, true) end if ( weapon == 32) then createExplosion(hitX, hitY, hitZ, 6, true, false, true) end if ( weapon == 29) then createExplosion(hitX, hitY, hitZ, 6, true, false, true) end if ( weapon == 28) then createExplosion(hitX, hitY, hitZ, 6, true, false, true) end if ( weapon == 33) then createExplosion(hitX, hitY, hitZ, 6, true, false, true) end if ( weapon == 34) then createExplosion(hitX, hitY, hitZ, 6, true, false, true) end if ( weapon == 25) then createExplosion(hitX, hitY, hitZ, 6, true, false, true) end end addEventHandler("onClientPlayerWeaponFire", root, superBullet) else outputChatBox("You Dont Have Enough Money 10000$",source,255,0,0) end p.s : " Don't give me a fish, teach me how to Catch it ! "
  5. Hello , thaks very much .. it worked after some edites thank you
  6. Hi , i made an script that send money to all players in server by one command , and the code is client-side .. now i want to put permissions so just admin can use commad .. i knew it by the function : hasObjectPermissionTo But its only server-side function ! -- the code function moneyAll(commandName,Al3grab) plrz = getElementsByType("player") if (tonumber(Al3grab)) then givePlayerMoney(Al3grab) outputChatBox("#FF0000 *** ADMIN HAS GIVEN MONEY: #00FF00" .. amount .. "$ #FF0000 TO ALL PLAYERS *** ",255,0,0,true) end end addCommandHandler( "sendall", moneyAll ) -- Al3grab = amount Any Help ?
×
×
  • Create New...