eldelahoz Posted March 8, 2013 Share Posted March 8, 2013 Hola lo que pasa es que quiero que los mensajes a aparescan pero para cada users por fa y no ce por que uno me aparece para todo el server g_base_col = createColCuboid ( 632.37408447266, 783.56402587891, 771, 210, 180, 80 ) g_root = getRootElement () function hit ( pla, dim ) if getElementType ( pla ) == "player" then local vehicle = getPlayerOccupiedVehicle ( pla ) if vehicle or not vehicle then local skin = getPlayerSkin ( pla ) if skin == 100 then outputChatBox ( "Bienvenido,DelaHoz!", pla, 0, 255, 0 ) else setElementData ( pla, "inRestrictedArea", "true" ) triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) outputChatBox ( "***Area Restringida***", pla, 255, 0, 0 ) outputChatBox ( "* "..getClientName(pla).." has entrado a un area restringidaa!", g_root, 255, 0, 0 ) end end end end addEventHandler ( "onColShapeHit", g_base_col, hit ) function leave ( pla, dim ) if getElementType ( pla ) == "player" then local vehicle = getPlayerOccupiedVehicle ( pla ) if vehicle or not vehicle then local skin = getPlayerSkin ( pla ) if skin == 100 then outputChatBox ( "Chao!", pla, 45, 255, 255 ) else setElementData ( pla, "inRestrictedArea", "false" ) triggerClientEvent ( pla, "destroyTimers", g_root, pla ) outputDebugString ( "*"..getClientName(pla).." has left col shape" ) end end end end addEventHandler ( "onColShapeLeave", g_base_col, leave ) Link to comment
Arsilex Posted March 8, 2013 Share Posted March 8, 2013 g_base_col = createColCuboid ( 632.37408447266, 783.56402587891, 771, 210, 180, 80 ) g_root = getRootElement () function hit ( pla, dim ) if getElementType ( pla ) == "player" then local vehicle = getPlayerOccupiedVehicle ( pla ) if vehicle or not vehicle then local skin = getPlayerSkin ( pla ) if skin == 100 then outputChatBox ( "Bienvenido,DelaHoz!", pla, 0, 255, 0 ) else setElementData ( pla, "inRestrictedArea", "true" ) triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) outputChatBox ( "***Area Restringida***", pla, 255, 0, 0 ) outputChatBox ( "* "..getClientName(pla).." has entrado a un area restringidaa!", pla, 255, 0, 0 ) end end end end addEventHandler ( "onColShapeHit", g_base_col, hit ) function leave ( pla, dim ) if getElementType ( pla ) == "player" then local vehicle = getPlayerOccupiedVehicle ( pla ) if vehicle or not vehicle then local skin = getPlayerSkin ( pla ) if skin == 100 then outputChatBox ( "Chao!", pla, 45, 255, 255 ) else setElementData ( pla, "inRestrictedArea", "false" ) triggerClientEvent ( pla, "destroyTimers", g_root, pla ) outputDebugString ( "*"..getClientName(pla).." has left col shape" ) end end end end addEventHandler ( "onColShapeLeave", g_base_col, leave ) Link to comment
Recommended Posts