Jump to content

waleedrt

Members
  • Posts

    47
  • Joined

  • Last visited

Everything posted by waleedrt

  1. waleedrt

    Help

    the function. i mean players can't use this scrip if they got damaged within 3 sec
  2. waleedrt

    Help

    ye its working but i wanted it to stop working for 3 sec if the player get damage
  3. waleedrt

    Help

    are u trying to help me or what cuz I don't see any defiance between my script and this script
  4. waleedrt

    Help

    function healer(playerSource) money=getPlayerMoney ( playerSource ) if money<3000 then outputChatBox ("Server : You Don't have enough money",playerSource ,255,0,0) return else takePlayerMoney ( playerSource , 3000 ) setElementHealth ( playerSource , getElementHealth ( playerSource )+100 ) outputChatBox ("You Got 100 HP" , playerSource, 21 , 241 , 32 , true ) end end addCommandHandler ( "hp", healer ) if anyone can help me to make this scrip don't work after 3 sec when player get damage that would be great
  5. waleedrt

    Help

    so , i have checked it and here what i did function healer(playerSource) if isTimer (wlaa ) then cancelEvent(healer) else money=getPlayerMoney ( playerSource ) if money<3000 then outputChatBox ("Server : You Don't have enough money",playerSource ,255,0,0) return else takePlayerMoney ( playerSource , 3000 ) setElementHealth ( playerSource , getElementHealth ( playerSource )+100 ) outputChatBox ("You Got 100 HP" , playerSource, 21 , 241 , 32 , true ) setTimer(healer,300,3) end end end addCommandHandler ( "hp", healer ) addEvent ("onPlayerDamage",playerSource, function (playerSource) setTimer (healer) end) and its not working and i have no idea what i did
  6. function fanFunction() bindKey ( "lshift","down", function () local sx,sy,sz = getElementVelocity ( vehicle ) setElementVelocity( vehicle ,sx, sy, sz+0.5 ) end ) end addCommandHandler("bindme",fanFunction) still not working
  7. @BEN i want it to be a command @MACIEKW89 not working @Urban_West ye i know , i have try it and it "change much"
  8. waleedrt

    Help

    well, i need to set time between commands like outputchatbox that appear when player is spamming or player can only say one thing every 5 sec. i don't know what should i use.
  9. waleedrt

    help plz

    ok..now i did this bindKey("lshift","down", function() local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then if isPedInVehicle (localPlayer) then local vehicle = getPedOccupiedVehicle (localPlayer) local sx,sy,sz = getElementVelocity ( vehicle ) setElementVelocity( vehicle ,sx, sy, sz+0.5 ) end end end) and now it stoped working....
  10. waleedrt

    help plz

    ye i worked thnx but can u tell me how to make it just for admins without using acl
  11. waleedrt

    help plz

    http://www49.zippyshare.com/v/ZcmwpAgC/file.html
  12. waleedrt

    help plz

    nope... i can open it without any problem but when i press shift nothing happens
  13. waleedrt

    help plz

    so i have to change it from the meta right?
  14. waleedrt

    help plz

    @Walid n @BEN. it does not work
  15. waleedrt

    help plz

    so ..... i should replace addCommandHandler("bindme",fanFunction) with addEventHandler ( string eventName, element attachedTo, function handlerFunction) addCommandHandler ( string commandName, function handlerFunction)
  16. waleedrt

    help plz

    can anyone tell me why is this does not work?? i can start it but it does not do any thing when i press lShift function fanFunction() bindKey ( "lshift","down", function () local sx,sy,sz = getElementVelocity ( vehicle ) setElementVelocity( vehicle ,sx, sy, sz+0.5 ) end ) end addEventHandler("bindme",fanFunction)
  17. can anyone tell me why is this does not work?? function fanFunction() bindKey ( "lshift","down", function () local sx,sy,sz = getElementVelocity ( vehicle ) setElementVelocity( vehicle ,sx, sy, sz+0.5 ) end ) end addEventHandler("bindme",fanFunction)
×
×
  • Create New...