Ascla

Members
  • Content Count

    52
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Ascla

  • Rank
    Snitch

Details

  • Location
    France
  1. Ascla

    [SOLVED] TopTimes

    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. Ascla

    [SOLVED] TopTimes

    I tryed your code but i have always the same error Thank for your help
  3. Ascla

    [SOLVED] TopTimes

    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. Ascla

    setPedAnimation

    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.