Jump to content

Valentin3526

Members
  • Posts

    83
  • Joined

  • Last visited

Everything posted by Valentin3526

  1. Problem solved, I redid the whole script so that it works.
  2. thanks, I test now EDIT: it still does not work...
  3. ------------------------------ Message de salutations ------------------------------ addEventHandler('onPlayerJoin', root, local oldAllowed = wasAllowedList[player] local newAllowed = isPlayerAllowedHere(player) wasAllowedList[player] = newAllowed if newAllowed and not oldAllowed then outputChatBox("Bienvenue sur GuilAndreas", value, 25, 45, 35, false) if oldAllowed and not newAllowed then function outputChatBox(joueur) outputChatBox("Salut, "..getPlayerName(joueur).." content de te revoir !", value, 35, 45, 25, false) end end end ) ------------------------------ Message d'arrivée ------------------------------ addEventHandler('onPlayerLogin', root, function outputChatBox(joueur) outputChatBox(..getPlayerName(joueur).."s'est connécté !", value, 0, 255, 0, true) end ) ------------------------------ Message de déconnexion ------------------------------ addEventHandler('onPlayerQuit', root, function outputChatBox(joueur) outputChatBox(..getPlayerName(joueur).."s'est déconnécté !", value, 255, 0, 0, true) end ) ------------------------------ Message de connexion ------------------------------ addEventHandler('onPlayerLogin', root, local outputChatBox("Vous êtes maintenent en ligne", value, 100, 255, 100, false) end ) ------------------------------ Message de déconnexion ------------------------------ addEventHandler('onPlayerLogout', root, local outputChatBox("Vous êtes maintenent hors ligne", value, 255, 100, 100, false) end )
  4. Merci pour l'aide, c'est juste que j'avais vu ce type de script sur un autre s_xxx.lua donc je me suis dit qu'en faisait de même sa marcherait Sinon encors merci
  5. Some changes, even after that, his does not work
  6. Thanks EDIT: Some changes, even after that, his does not work
  7. Where are my errors ? (This is the server.lua, I must create a client.lua for this to work ? And what should I put in it ?) ------------------------------ Message de salutations ------------------------------ AddEventHandler('onPlayerJoin', root, local oldAllowed = wasAllowedList[player] local newAllowed = isPlayerAllowedHere(player) wasAllowedList[player] = newAllowed if newAllowed and not oldAllowed then outputChatBox("Bienvenue sur GuilAndreas", value, 25, 45, 35, false) if oldAllowed and not newAllowed then function outputChatBox(joueur) outputChatBox("Salut, "..getPlayerName(joueur).." content de te revoir !", value, 35, 45, 25, false) end end end ) ------------------------------ Message d'arrivée ------------------------------ AddEventHandler('onPlayerLogin', root, function outputChatBox(joueur) outputChatBox(..getPlayerName(joueur).."s'est connécté !", value, 0, 255, 0, true) end ) ------------------------------ Message de déconnexion ------------------------------ AddEventHandler('onPlayerQuit', root, function outputChatBox(joueur) outputChatBox(..getPlayerName(joueur).."s'est déconnécté !", value, 255, 0, 0, true) end ) ------------------------------ Message de connexion ------------------------------ AddEventHandler('onPlayerLogin', root, local outputChatBox("Vous êtes maintenent en ligne", value, 100, 255, 100, false) end ) ------------------------------ Message de déconnexion ------------------------------ AddEventHandler('onPlayerLogout', root, local outputChatBox("Vous êtes maintenent hors ligne", value, 255, 100, 100, false) end )
  8. ------------------------------ Message de salutations ------------------------------ AddEventHandler('onPlayerJoin', root, local oldAllowed = wasAllowedList[player] local newAllowed = isPlayerAllowedHere(player) wasAllowedList[player] = newAllowed if newAllowed and not oldAllowed then outputChatBox("Bienvenue sur GuilAndreas", value, 25, 45, 35, false) if oldAllowed and not newAllowed then function outputChatBox(joueur) outputChatBox("Salut, "..getPlayerName(joueur).." content de te revoir !", value, 35, 45, 25, false) end end end ) ------------------------------ Message d'arrivée ------------------------------ AddEventHandler('onPlayerLogin', root, function outputChatBox(joueur) outputChatBox(..getPlayerName(joueur).."s'est connécté !", value, 0, 255, 0, true) end ) ------------------------------ Message de déconnexion ------------------------------ AddEventHandler('onPlayerQuit', root, function outputChatBox(joueur) outputChatBox(..getPlayerName(joueur).."s'est déconnécté !", value, 255, 0, 0, true) end ) ------------------------------ Message de connexion ------------------------------ AddEventHandler('onPlayerLogin', root, local outputChatBox("Vous êtes maintenent en ligne", value, 100, 255, 100, false) end ) ------------------------------ Message de déconnexion ------------------------------ AddEventHandler('onPlayerLogout', root, local outputChatBox("Vous êtes maintenent hors ligne", value, 255, 100, 100, false) end )
×
×
  • Create New...