-
Posts
1,283 -
Joined
-
Last visited
Everything posted by manve1
-
I made a script which should 100% work, but it doesn't, it is in meta as server side, but i get error in debug script 3 that on the acl part "getPlayerName" argument 1 has an error function plata( source ) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then givePlayerMoney( v, 1 ) end end setTimer ( plata, 2300, 0)
-
oh, got confused now confused of how should i make the getPlayerFromNamePart EDIT: i tried making it work .. but failed: function power(source,action,player) player = getPlayerName( source ) if name then for i, player in ipairs(getElementsByType("player")) do if string.find(getPlayerName(player):lower(), tostring(name):lower(), 1, true) then return player end end if not player then outputChatBox("sorry, but we need the player full name!",source) return end if not isPedInVehicle(player) then outputChatBox("Sorry, but the player isn't in a vehicle!",source) return end local vehicle = getPedOccupiedVehicle ( player ) if ( action == "fix" ) then fixVehicle ( vehicle ) elseif ( action == "blow" ) then blowVehicle ( vehicle ) end end end addCommandHandler("blow",power) addCommandHandler("fix",power)
-
Anderl code looks like this: function power(source,action,player) player = getPlayerFromNamePart(player) if not player then outputChatBox("sorry, but we need the player full name!",source) return end if not isPedInVehicle(player) then outputChatBox("Sorry, but the player isn't in a vehicle!",source) return end local vehicle = getPedOccupiedVehicle ( player ) if ( action == "fix" ) then fixVehicle ( vehicle ) elseif ( action == "blow" ) then blowVehicle ( vehicle ) end end addCommandHandler("blow",power) addCommandHandler("fix",power)
-
would there be a way i could make my script blow someones vehicles when i do: /boom ? function ( player ) local vehicle = getPedOccupiedVehicle ( player ) if ( vehicle ) then if ( boom ) then blowVehicle ( vehicle ) end end end
-
how could i make that others would see it too?
-
I tried using what jay said, re-made it .. ect .. but still didn't work, even if i make it client or server side ( i left it as server side ) function cry_baby() setTimer(outputChatBox,100,1,getPlayerName(source) .."#FF0000 Cries like a baby #0000FF",source,255,255,255,true) end addCommandHandler( "cry", cry_baby ) in debug it tells about the "getPlayerName" that it gets boolen...
-
is there a way i could actually remove a blip from a player after he dies?
-
I'm actually reporting more of a mta community member that is actually rating everything i try to make 1/5 and posting some things which most likely is correct but that counts what he posts + rates as spamming, because he does it only to me because i tried to fix save-system .. links: https://community.multitheftauto.com/ind ... ls&id=5734 https://community.multitheftauto.com/ind ... ls&id=5377 https://community.multitheftauto.com/ind ... ls&id=5606 https://community.multitheftauto.com/ind ... ls&id=5600 https://community.multitheftauto.com/ind ... ls&id=5613 i don't want them to get deleted, i just want you to take a look at what "Alan.Alexander" always posts on my scripts, because it is unfair for me ...
-
try this: hello = { hi = true hey = true }
-
i don't know what you mean and i don't blame you for it, but have you tried using: onClientGuiClick --or guiSetVisible
-
NOTE: You already asked this! take my re-maked one https://community.multitheftauto.com/ind ... ls&id=5734
-
/\ this is actually good example for a bug, but there was a post of adding stuff like GIF ect .. even why not adding video formats acceptable? thats what i was asking
-
make a script which would save account details and when they die, he gets them
-
oh, so i can't use video ?
-
Is there functions with i could use to make like a video on player's screen?
-
Why a 100ms timer? it's basically the same as outputting the text right after typing the command ._. because it is? i want it to be like this
-
the script i made doesn't output any debugscript 3 or something in chat function cry_baby( ) setTimer ( outputChatBox, 100, 1, "#FF0000 Cries like a baby #0000FF (( #FFFFFF".. getPlayerName(source) .."#0000FF ))", source, 255, 255, 255, true ) end end addCommandHandler( "cry", cry_baby )
-
you haven't made that the health would go up and down EDIT: use dxDrawRectangle <<== should work for the outline of the health... btw there is already resource made for MTA ... https://community.multitheftauto.com/ind ... ls&id=5673 the script is for: name tag, health bar, armor bar.
-
you can't set whole GUI as set read only only a memo. --ect: memo = guiCreateMemo( 0.7, 0.6, 0.9, 0.9, "", true ) guiMemoSetReadOnly(memo, true)
