GamerDeMTA Posted March 28, 2013 Posted March 28, 2013 For put an image in the screen when the player Join... Just for 8 seconds.
Sex* Posted March 28, 2013 Posted March 28, 2013 MAKE IT YOURSELF! Hint: dxdrawimage onPlayerJoin setTimer
iPrestege Posted March 28, 2013 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 );
GamerDeMTA Posted March 28, 2013 Author 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???
Drakath Posted March 28, 2013 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)
NodZen Posted March 28, 2013 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.
Drakath Posted March 28, 2013 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)
iPrestege Posted March 28, 2013 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 .
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