-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
Tenes que cambiar la setting: "allowColorcodedNames" en el Admin Panel > Resources > scoreboard > Settings.
-
1: Ya soy dueño de un servidor. 2: No tengo tiempo para mi propio servidor. 3: No me gustan los servidores latinos, mucho insulto.
-
Podrias crear una tabla con los serials de cada uno y el skin.
-
function ElementDimension ( thePlayer, commandName ) if ( commandName == "dm" ) then setElementDimension ( thePlayer, 1 ) outputChatBox ( "Você entrou na Dimensão", thePlayer ) elseif ( commandName == "sairdm" ) then setElementDimension ( thePlayer, 0 ) outputChatBox ( "Você saiu da Dimensão", thePlayer ) end end addCommandHandler ( "dm", ElementDimension ) addCommandHandler ( "sairdm", ElementDimension )
-
If I'm right, it's inefficient to use one timer for each player, and it's more efficient to loop all players with one timer. setTimer ( function ( ) for _, player in ipairs ( getElementsByType ( "player" ) ) do givePlayerMoney ( player, 100 ) end end ,300000, 0 )
-
You must have more than one resource that is used to chat.
-
Lo que acabas de decir no tiene sentido, una funcion se puede exportar client o server side.
-
takePlayerMoney(theplayer, 5000(amount)) What is (amount) doing there? Where is 'theplayer' defined? it should be 'source'.
-
No, that doesn't make much sense.
-
Click on both links and read about them.
-
pList = guiCreateGridList(194,9,300,300,false,wn) column = guiGridListAddColumn( pList, "Player", 0.85 ) function refresh ( ) for id, player in ipairs ( getElementsByType ( "player" ) ) do guiGridListSetItemText ( pList, guiGridListAddRow ( pList ), column, getPlayerName ( player ), false, false ) end end addEventHandler ( "onClientResourceStart", resourceRoot, refresh ) function update ( old, new ) if ( eventName == "onClientPlayerJoin" ) then guiGridListSetItemText ( pList, guiGridListAddRow ( pList ), column, getPlayerName ( source ), false, false ) elseif ( eventName == "onClientPlayerQuit" ) then for row = 0, guiGridListGetRowCount ( pList ) do if ( guiGridListGetItemText ( pList, row, column ) == getPlayerName ( source ) ) then guiGridListRemoveRow ( pList, row ) break end end elseif ( eventName == "onClientPlayerChangeNick" ) then for row = 0, guiGridListGetRowCount ( pList ) do if ( guiGridListGetItemText ( pList, row, column ) == old ) then guiGridListSetItemText ( pList, row, column, new, false, false ) break end end end end addEventHandler ( "onClientPlayerJoin", root, update ) addEventHandler ( "onClientPlayerQuit", root, update ) addEventHandler ( "onClientPlayerChangeNick", root, update )
-
addEventHandler ( "onPlayerLogin", root, function ( ) executeCommandHandler ( "skin", source ) end ) Tendras que darle permisos en el ACL para poder usar la funcion: executeCommandHandler.
-
pList = guiCreateGridList(194,9,300,300,false,wn) column = guiGridListAddColumn( pList, "Player", 0.85 ) function refresh ( ) guiGridListClear ( pList ) for id, player in ipairs ( getElementsByType ( "player" ) ) do local row = guiGridListAddRow ( pList ) guiGridListSetItemText ( pList, row, column, getPlayerName ( player ), false, false ) end end addEventHandler ( "onClientResourceStart", resourceRoot, refresh ) addEventHandler ( "onClientPlayerJoin", root, refresh ) addEventHandler ( "onClientPlayerQuit", root, refresh ) addEventHandler ( "onClientPlayerChangeNick", root, refresh ) That'll update it every time a player joins/quits/changes nick.
-
No, I tell you to read about this: https://wiki.multitheftauto.com/wiki/OnClientGUIClick
-
Se active o se ejecute como si pusiera "/skin"?
-
Se active o se ejecute como si pusiera "/skin"?
-
How about... no? click on the link I gave you and read about it.
-
Read only: guiMemoSetReadOnly Close button: onClientGUIClick
-
His code works as it's supposed, the only problem is in here: outputChatBox ( 'You'll die in 5 seconds!', p, 255, 255, 255, false ) With the ' he's finishing the string. Should be: outputChatBox ( "You'll die in 5 seconds!", p, 255, 255, 255, false )
-
Just add: guiSetVisible ( GUIEditor_Window[1], false ) After: guiCreateWindow.
-
There is no need for that, just copy the script I posted and your server side.
-
That error was on your script, but in mine isn't.
