Jump to content

Ascla

Members
  • Posts

    52
  • Joined

  • Last visited

Everything posted by Ascla

  1. I find a solution. I've transfer the script file who called in the script file who was called. I just use the function : TriggerEvent Thanks you so much.
  2. I tryed your code but i have always the same error Thank for your help
  3. Resource running because I got the Debug "outputDebugString("Function getTimeForPlayer appelé !")".
  4. Hey guys, I need your help for use the function call. My script : function hunter(pickupID, pickupType, vehicleModel) if (pickupType == "vehiclechange") then if (vehicleModel == 425) then outputDebugString ("Hunter !") call(getResourceFromName("race_toptimes"), "SMaptimes:getTimeForPlayer", source ) end end end addEventHandler('onPlayerPickUpRacePickup', source, hunter) addEvent('onPlayerPickUpRacePickup', true) function SMaptimes:getTimeForPlayer(player) outputDebugString("Function getTimeForPlayer appelé !") local i = self:getIndexForPlayer( player ) if not i then return false end return self.dbTable.rows[i].timeMs end TopTime meta : ... <export function="SMaptimes:getTimeForPlayer" type="server"/> ... I got this error : Thank for your help,
  5. Ascla

    onPlayerFinish

    This function don't work My code : function hunter(pickupID, pickupType, vehicleModel) if (pickupType == "vehiclechange") then if (vehicleModel == 425) then outputDebugString ("Hunter !") local rang = call(getResourceFromName("race"), "getTimePassed") outputDebugSring(rang) end end end addEventHandler('onPlayerPickUpRacePickup', source, hunter) addEvent('onPlayerPickUpRacePickup', true)
  6. Ascla

    onPlayerFinish

    okay but in dm race, for reach a tt, user must have hunter. So I will use "onPlayerPickUpRacePickup" but how recover top time rank ?
  7. Ascla

    onPlayerFinish

    I wonder why onPlayerFinishDD function does not work. I can't put my code in toptime code because I use crypted resource.
  8. Ascla

    onPlayerFinish

    This code don't work. When I reached the Hunter, this code has not launched the message
  9. Ascla

    onPlayerFinish

    Yes and, I must edit this file ? -- Update ranking board if one player left local activePlayers = getActivePlayers() if #activePlayers == 1 then self.rankingBoard:add(activePlayers[1], timePassed) showMessage(getPlayerName(activePlayers[1]) .. ' is the final survivor!', 0, 255, 0) triggerEvent( "onPlayerWinDD",activePlayers[1] ) end
  10. Ascla

    onPlayerFinish

    onPlayerWinDD doesn't work
  11. Ascla

    onPlayerFinish

    Thank, but how to recover toptime rank ? I found the function onPlayerFinishDD, how to use it ?
  12. Ascla

    onPlayerFinish

    Hey guys. I've a problem. I'm creating a script for dm server but I have a problem with onPlayerFinish. addEventHandler("onPlayerFinish", ....) doesn't work. I also try "onPlayerFinishDD", but it doesn't work. I would like recover toptime rank when a user take the hunter. Thank,
  13. Hey all, I've a problem. I want to use setPedAnimation on a player, but when I use this function, the player is frozen. Is it possible to move during a setPedAnimation ? Thanks
  14. Oui j'ai beaucoup entendu parler de vous et je trouve ça dommage pour votre stand-by. De notre côté, la motivation y est et le serveur avance à grand pas. Merci à vous est bon courage pour votre projet.
  15. Bonjour à tous, je suis ici pour vous présenter un projet qui avance à grande vitesse. Je vais vous présenter ce projet par le biais de quelques questions avec leurs réponses. Qu'est ce que NoHope ? NoHope est à la base une petite communauté d'une dizaine de membres. C'est une sorte de "Team de Gamer" mais nous sommes surtout partis sur la création d'un serveur. Et oui, nous sommes sur la création d'un serveur Rôle Play Multi Theft Auto Français. Pourquoi partir sur la plateforme Multi Theft Auto ? Comme vous devez le savoir, le nombre de serveur Mta Rôle Play Français est largement plus petit que les serveurs de Samp. Mta offre aussi beaucoup plus de possibilités de script que Samp. Je ne suis pas là pour comparer ces deux plateformes mais c'est ces petits arguments qui nous font partir sur Mta. Ce projet mettra-t-il terme un jour ? Nous avons commencer ce projet en Novembre 2012 et nous avons parcouru plus de 70% du "gamemode". Donc je pense que d'ici les prochaines vacance d'été, il y aura de grandes chances que le serveur soit ouvert. Qui sont les personnes qui s'occupent de ce projet ? Nous sommes actuellement trois sur le développement de ce projet. Nous avons des connaissances en lua, html, php, bref tous les langages auxquels nous avons besoin pour ce projet. Notre Team est composé de : --> Ascla (moi) : Responsable TeamSpeak 3, Responsable Forum, Dev Serveur --> Funky : Dev Serveur --> Angelusskyline : Responsable Panel Utilisateur Web, Dev Serveur Si vous avez d'autres questions sur ce projet, je vous laisse les poser à la suite de ce topic. Pour ceux qui sont intéressés par ce projet, rendez-vous sur notre Forum http://nohope.fr ou sur notre TeamSpeak 3 disponible à cette adresse : nohope.fr Merci d'avoir lu ce topic et à bientôt !
  16. Hey guys, I've a problem, When nobody is connected in the server, my MySQL bug. For example, my login script sends me an error after a few hours. ERROR: [gamemodes]/[RP]/login/login.lua:203: bad argument #1 to 'mysql_num_rows' (LuaBook.mysqlResult expected, got nil) Thanks,
  17. Ascla

    Alpha weapon

    Yes but this is a problem for me, because I want create a tazer without replacing one weapon in the game
  18. Ascla

    Alpha weapon

    Anderl, it's an error function taser (thePlayer) local arme = giveWeapon ( thePlayer, 24, 100 ) if (arme) then setElementAlpha ( arme, 0 ) triggerClientEvent(thePlayer, "avoiruntazer", getRootElement(), thePlayer, taser) --attachElements ( taser, thePlayer, 0.2, 0, 1,180,0,0) end end
  19. Ascla

    Alpha weapon

    Hey guys, I've a problem, I want to make a invisible just a weapon. I try : local weapon= giveWeapon ( thePlayer, 24, 100 ) if (arme) then setElementAlpha ( weapon, 0 ) end But "setElementAlpha" not found the element. Thanks,
  20. Ascla

    AttachElements

    Oh ! Thanks you Tete ! I was searching that !
  21. Ascla

    AttachElements

    Hey guys, I've a problem I want attach a Tazer to a player, and I use the function "AttachElements". But when the player runs, the Tazer is flying near the player and not in his hand. I search a function who attachs an object on the arm or the leg Thanks,
  22. Ascla

    Problem MySql

    Hey all, I've a problem with my modules. When I start my server, I get this error : But the file libmysql.so is installed. Thanks,
  23. Ascla

    Mapping load

    It's not my problem It's the mapping added who don't appear.
  24. Ascla

    Mapping load

    Hey guys, I've a problem with the mapping of my server. When I go after ten meters around of my mapping, he disappeared. How can we see the mapping more than ten meters ?
×
×
  • Create New...