Jump to content

Erik3R

Members
  • Posts

    7
  • Joined

  • Last visited

Details

  • Gang
    3r

Erik3R's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. still .. nothing happens -.- --client local SkinMarker = createMarker(224.80000305176,1859.1999511719,11.800000190735, "cylinder", 1.0, 245, 0, 0, 255) createBlipAttachedTo(SkinMarker,45,2,0,255,0,0,0,200) setElementInterior (SkinMarker,0) setElementDimension (SkinMarker, 0) GUIEditor = { button = {}, window = {}, radiobutton = {} } GUIEditor.window[1] = guiCreateWindow(904, 330, 179, 104, "Skin Selector", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.radiobutton[1] = guiCreateRadioButton(14, 28, 155, 15, "Skin #1 - Female Soldier", false, GUIEditor.window[1]) GUIEditor.radiobutton[2] = guiCreateRadioButton(14, 49, 155, 15, "Skin #2 - Male SWAT", false, GUIEditor.window[1]) guiRadioButtonSetSelected(GUIEditor.radiobutton[1], true) GUIEditor.button[1] = guiCreateButton(34, 74, 111, 20, "Done", false, GUIEditor.window[1]) function ShowWindow(hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(GUIEditor.window[1]) then guiSetVisible(GUIEditor.window[1], true) showCursor(true) end end end addEventHandler("onClientMarkerHit",SkinMarker, ShowWindow) function SelectSKIN () if guiRadioButtonGetSelected(GUIEditor.radiobutton[1]) then triggerServerEvent ("FemaleSkin", localPlayer) elseif guiRadioButtonGetSelected(GUIEditor.radiobutton[2]) then triggerServerEvent ("MaleSkin", localPlayer) end end function Done () if source == GUIEditor.button[1] then showCursor (false) guiSetVisible (GUIEditor.window[1],false) end end addEventHandler ("onClientGUIClick", root, Done) --Server function FemaleSkin() setElementModel( source, 201 ) end addEvent("FemaleSkin",true) addEventHandler("FemaleSkin", root, FemaleSkin) function MaleSkin() setElementModel(source, 202) end addEvent("MaleSkin",true) addEventHandler("MaleSkin", root, MaleSkin)
  2. I've read your code, but when i select the radiobutton and click Done, skin doesn't change
  3. Hi, nothing happens WARNING: bad argument @ 'setElementModel' [Expected element at argument 1, got nill --Server function FemaleSkin(player) setElementModel( player, 201 ) end addEvent("FemaleSkin",true) addEventHandler("FemaleSkin", root, FemaleSkin) function MaleSkin(player) setElementModel(player, 202) end addEvent("MaleSkin",true) addEventHandler("MaleSkin", root, MaleSkin)
  4. Hello! I'm scripting a skin selector resource for my server, but i am not sure what's going wrong it doesn't work when i check the radiobutton and exit the gui --Server function FemaleSkin(player) setElementModel( player, 201 ) end addEventHandler("FemaleSkin", root, FemaleSkin) function MaleSkin(player) setElementModel(player, 202) end addEventHandler("MaleSkin", root, MaleSkin) --client function SelectSKIN () if guiRadioButtonGetSelected(GUIEditor.radiobutton[1]) then tiggerServerEvent("FemaleSkin", localPlayer) else if guiRadioButtonGetSelected(GUIEditor.radiobutton[2]) then tiggerServerEvent("MaleSkin", localPlayer) end end end addEventHandler ("onClientGUIClick", root, SelectSKIN )
  5. Erik3R

    Respawn

    Hi, some maps have respawn with timeleft, and i am too lazy to manually change it from the meta.xml file, so is there a way to stop it from onPlayerWasted function? help! function RaceMode:onPlayerWasted(player) if not self.checkpointBackups[player] then return end TimerManager.destroyTimersFor("checkpointBackup",player) if RaceMode.getMapOption('respawn') == 'timelimit' and not RaceMode.isPlayerFinished(source) then -- See if its worth doing a respawn local respawnTime = RaceMode.getMapOption('respawntime') if self:getTimeRemaining() - respawnTime > 3000 then Countdown.create(respawnTime/1000, restorePlayer, 'You will respawn in:', 255, 255, 255, 0.25, 2.5, true, self.id, player):start(player) end if RaceMode.getMapOption('respawntime') >= 5000 then TimerManager.createTimerFor("map",player):setTimer(clientCall, 2000, 1, player, 'Spectate.start', 'auto') end end if g_MapOptions.respawn == 'none' then removeActivePlayer( player ) TimerManager.createTimerFor("map",player):setTimer(clientCall, 2000, 1, player, 'Spectate.start', 'auto') if getActivePlayerCount() < 1 and g_CurrentRaceMode.running then RaceMode.endMap() end end end
  6. Erik3R

    Random Map

    Hi, I don't want to use votemanager so i stopped it, and i changed *Random Maps* to 'true' value from the meta.xml (race gamemode), But when last survival dies there's nothing happens at all.. Help please, much appreciated if so.
  7. Hi, I'm looking to buy 'race' gamemode with all features, I'm not interested in LEAKED or PUBLIC stuff. I'll pay with PayPal. Skype: xreality14
×
×
  • Create New...