- 
                Posts111
- 
                Joined
- 
                Last visited
Everything posted by OGF
- 
	Try checking if the ped is in the vehicle 'isPedInVehicle' <--- if that returns true then use getPedOccupiedVehicle to destroy it.
- 
	mega9, It isn't that hard to do, let him do it.
- 
	Don't use 'local' when you create your markers.
- 
	Read my edit, my mistake ^ it should be fixed next version.
- 
	http://bugs.multitheftauto.com/view.php?id=7544&nbn=1 EDIT : ignore what I said, that bug will be fixed in 1.3.2
- 
	Is your problem still that it displays twice or what? because it works fine. If it is still displaying twice, then you are obviously running another eventHandler with "onPlayerChat" .
- 
	Ok, you need to make the localPlayer create that projectile though. So when the person hits it do createProjectile(localPlayer, 20, 1304.900,-2081.10,73.59, 200, hitElement) so it creates it at the objects position.
- 
	Change createProjectile(object, 20, _,_,_, 200, hitElement) to createProjectile(localPlayer, 20, _,_,_, 200, hitElement)
- 
	I've done it like that many times and never had problems.. It's the same as doing function mm ( thePlayer) , It simply overwrites the predefined variable ... "Source" for that function.
- 
	Well I know that, but you need to fill in the parameter, and source does the job. And Sasuke thanks for fixing that.
- 
	Assuming you did all of this client-sided, things such as the isPlayerAdmin should be on the server side. so make a function that has triggerClientEvent so when the button is pressed the window opens. the onJoin function also.. --Server sided script.. function isPlayerAdmin (source) local accountname = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user." ..accountname, aclGetGroup("Admin")) then return true elseif isObjectInACLGroup("user." ..accountname, aclGetGroup("SuperModerator")) then return true end end function openWindow(source) if isPlayerAdmin (source) then triggerClientEvent ( ... ) --code there. end end function onJoin () if isPlayerAdmin (source) then bindKey ( source, "F7", "down", openWindow) end end addEventHandler ( "onPlayerJoin", root, onJoin )
- 
	I think it will be working for another month or so, but good luck. and don't get me wrong it sounds very cool.
- 
	You didn't get the memo? this script is useless now.
- 
	Just make sure where ever you open, you close. You would be surprised the destructive power it has when you open when there is one already opened or vice versa.
- 
	Sasuke, I told you it was seconds and to look at the syntax.
- 
	It's not milliseconds, the default is in SECONDS, so what YOU did is seconds * 60 * 1000 Take a look at the syntax https://wiki.multitheftauto.com/wiki/BanPlayer
- 
	Much easier if you bind the key server sided Good because it checks if the person is admin to bind the key and when the player presses the key, just a little more security. server function onlogin () local accountname = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user." ..accountname, aclGetGroup("Admin")) then bindKey ( source, "F6", "down", triggerWindow) end end addEventHandler ( "onPlayerLogin", root, onlogin ) function triggerWindow(source) local accountname = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user." ..accountname, aclGetGroup("Admin")) then triggerClientEvent ( contenthere ) end end
- 
	try if editText ~= "" or timeBan ~= "" then
- 
	Instead of triggering the serverside event if TimeBan you can try if editText and editText ~= "" then TriggerSeverEvent here.
- 
	I think he means live stream something on to the games billboard? if so, that's not possible. Even just videos are difficult. If you mean live stream a game then you can use xfires broadcast system. Twitch tv not sure how you use it with MTA though.

 
        