waleedrt
Members-
Posts
47 -
Joined
-
Last visited
Everything posted by waleedrt
-
the function. i mean players can't use this scrip if they got damaged within 3 sec
-
ye its working but i wanted it to stop working for 3 sec if the player get damage
-
are u trying to help me or what cuz I don't see any defiance between my script and this script
-
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
-
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
-
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
-
@BEN i want it to be a command @MACIEKW89 not working @Urban_West ye i know , i have try it and it "change much"
-
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.
-
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....
-
ye i worked thnx but can u tell me how to make it just for admins without using acl
-
http://www49.zippyshare.com/v/ZcmwpAgC/file.html
-
nope... i can open it without any problem but when i press shift nothing happens
-
so i have to change it from the meta right?
-
@Walid n @BEN. it does not work
-
so ..... i should replace addCommandHandler("bindme",fanFunction) with addEventHandler ( string eventName, element attachedTo, function handlerFunction) addCommandHandler ( string commandName, function handlerFunction)
-
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)
-
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)
