
mcer
Members-
Posts
145 -
Joined
-
Last visited
Everything posted by mcer
-
Debugscript: Bad argument @ 'guiSetText [Expected gui-element at argument 1,got nil] With this
-
I can't put local MilitaryCount = countPlayersInTeam ( Military ) In this GUIlabel (Don't appear when i put "MilitaryCount" in the code) MilitaryN = guiCreateLabel(104, 427, 70, 19, "Number", false, TeaSelectorWin) guiLabelSetColor(MilitaryN, 106, 105, 109) I want to replace "number" With the number of a specific team. Please help.
-
In thePlayer you need use "sourcePlayer ", This tells the Script "see if the user Is dead and what it need to do."
-
You can use it. https://wiki.multitheftauto.com/wiki/IsPedDead replaces "outputchatbox" with the code of the GUI
-
Trigger the GUI in the Respawn lines.
-
SOLVED!!! Thanks a lot. The spawn don't have any problems, What I would like to know is how to turn this function on clientside. Thanks fot that too!
-
With the new Triggering code appear some warnings in the console: Bad argument SpawnPlayer Bad argument FadeCamera Bad argument setCameraTarget
-
The spawn don't have any problems, What I would like to know is how to turn this function on clientside. Thanks fot that too!
-
Idk how to put a trigger in Clientside, Please help me.
-
The idea of the script is to create a button, which when you click it to close the window and the user appear on the map. The only thing I fails here is the spawn. ClientSide addEventHandler ("onClientGUIClick", getRootElement(), function () if ( source == MilitaryB ) then guiSetVisible ( TeaSelectorWin,false) showCursor (false) triggerEvent ( "MilitarySpawnEvent", getRootElement(), "test" ) end end ) ServerSide addEvent ( "MilitarySpawnEvent", true ) function MilitarySpawn(source) if source then thePlayer = source else thePlayer = player end spawnPlayer( thePlayer, 2314.75+math.random(-1,1), -6.43+math.random(-1,1), 26.74, 180, 285, 0, 0, Military) fadeCamera( thePlayer, true) setCameraTarget( thePlayer, source) end addEventHandler ( "MilitarySpawnEvent", getRootElement(), MilitarySpawn ) addCommandHandler("asd",MilitarySpawn)
-
Ok thanks, but check this out, it is assumed that this script should appear to users according to how you call your team. function whatTeamAmIOn ( source ) -- Get the player's team (source is the player who entered the command) local playerTeam = getTeamName ( source ) if ( playerTeam ) then -- if he was on a team setElementPosition ( source, getTeamName(playerTeam), 2499.4787597656, 10.8203125 ) else outputChatBox ( getPlayerName ( source ) .. " isn't on a team" ) end end -- Add console command to find your team when 'whatTeamAmIOn' is typed. addCommandHandler ( "what", whatTeamAmIOn )
-
Yo te hago el script del helicoptero, avisame cuando para ponernos en contacto, a y te lo creare gratis.
-
I'm doing a script to add spawnpoints in my server, which is a special spawnpoint for each team but does not work correctly. Please help me -- Cordenadas de los supervivientes local Policial, PolicialY, PolicialZ = 2243.29296875, 2499.4787597656, 10.8203125 local MilitarX, MilitarY, MilitarZ = 223, 1878, 18 -- Armas Policiales y Militares local joinWeapon = 1 local joinAmmo = 1 local joinWeapon2 = 45 local joinAmmo2 = 1 local amount = 300 -- Apariencia de los supervivientes local SkinPolicial = {"71","163","164","165","166","265","266","267","280","281","282","283","284","285","286","288"} local SkinCivil = {"33","34","44","128","132","133","158","159","160","161","200","202","236","261","182"} local SkinMilitar = {"312","301","79","179","287","101"} -- Aparecer Configuracion del Script function spawnOnJoin(playerSource) spawnPlayer(source, PolicialX+math.random(-1,1), PolicialY+math.random(-1,1), PolicialZ, 180) setElementModel(source, SkinPolicial[math.random(1, #SkinPolicial)]) givePlayerMoney (source, amount) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox(joinMessage, source) giveWeapon(source, joinWeapon, joinAmmo) giveWeapon(source, joinWeapon2, joinAmmo2) end -- Event handlers addEventHandler ("onPlayerJoin", getRootElement(), spawnOnJoin) function whatTeamAmIOn ( source ) -- Get the player's team (source is the player who entered the command) local playerTeam = getTeamName ( source ) if ( playerTeam ) then -- if he was on a team setElementPosition ( source, getTeamName(playerTeam), 2499.4787597656, 10.8203125 ) else outputChatBox ( getPlayerName ( source ) .. " isn't on a team" ) end end -- Add console command to find your team when 'whatTeamAmIOn' is typed. addCommandHandler ( "what", whatTeamAmIOn )
-
I'll help, but would need the scripts. Send me a PM if you are interested in correcting mistakes and when we get agree you send my E-mail.
-
Please tell me the IDs of the skins you want they appear.
-
This gamemode is not available each makes his own friend. I can help you for free. I have no profit motive so ask me anything you want.
-
I'll I can create is very simple. Tell me how you would like it to be. And surely you do it to you as requested. And do not get paid, it's FREE!