GamerDeMTA Posted March 28, 2013 Share Posted March 28, 2013 For put an image in the screen when the player Join... Just for 8 seconds. Link to comment
Sex* Posted March 28, 2013 Share Posted March 28, 2013 MAKE IT YOURSELF! Hint: dxdrawimage onPlayerJoin setTimer Link to comment
iPrestege Posted March 28, 2013 Share Posted March 28, 2013 It's easy : addEventHandler("onClientResourceStart",resourceRoot, function ( ) local x, y = guiGetScreenSize(); Image = guiCreateStaticImage(0,0, x, y, "FilePath", false); setTimer(guiSetVisible,8000,1,Image,false); end ); Link to comment
GamerDeMTA Posted March 28, 2013 Author Share Posted March 28, 2013 but I want to put it only to the player who Joins not to all... It will be to all or just to the player??? Link to comment
Drakath Posted March 28, 2013 Share Posted March 28, 2013 function asd ( ) local x, y = guiGetScreenSize(); Image = guiCreateStaticImage(0,0, x, y, "FilePath", false); setTimer(guiSetVisible,8000,1,Image,false); end addEventHandler ( "onPlayerJoin", getRootElement(), asd) Link to comment
NodZen Posted March 28, 2013 Share Posted March 28, 2013 function asd ( ) local x, y = guiGetScreenSize(); Image = guiCreateStaticImage(0,0, x, y, "FilePath", false); setTimer(guiSetVisible,8000,1,Image,false); end addEventHandler ( "onPlayerJoin", getRootElement(), asd) No, Because onPlayerJoin is Server-Side Event .Has to be with onClientResourceStart. Link to comment
Drakath Posted March 28, 2013 Share Posted March 28, 2013 function asd ( ) local x, y = guiGetScreenSize(); Image = guiCreateStaticImage(0,0, x, y, "FilePath", false); setTimer(guiSetVisible,8000,1,Image,false); end addEventHandler ( "onClientPlayerJoin", getRootElement(), asd) Link to comment
iPrestege Posted March 28, 2013 Share Posted March 28, 2013 what's the problem guys? on client join won't work! use client resource start! only for that player it's client ._. use my code it's only for that player how join the server . Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now