
X-SHADOW
Members-
Posts
721 -
Joined
-
Last visited
Everything posted by X-SHADOW
-
Hi all i have suggestion what about make real weapons shoot and sounds and fire corlo like in real life this well make mta more fun and make if player enter any server cheak if his skin and weapons and car lags if it lag loading .. the orgnal skins ..? i hope you like it ?> i can make this with script but if it comes with mta be more fun
-
lol JR10 dont need for this resource i have it on my server i have made it with dxDrawimg lol
-
he can use xml save to get the id for the orgnal player
-
i guss i well go learn how to Make it right thx Jr10 Realy thx
-
1: no msg in chat box ? 2: no Account Cloumn in scoreboard and setElementData 3: i want set team and remove account on serverGroup_revoked not assigend !
-
download the last admin panel
-
its say server.lua:48: 'end expect to close 'if' at line 21 near <'efo'> client.lua:50: expected to close '(' at line 29 near 'end'
-
some my last post is it correct or worng if worng please show me correct
-
and dos the getElementByType get all teams event if the admin rename them again ?
-
but you can Make a table with the key you want and then compleate you script
-
this what i want client side GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Grid = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(448,205,604,391,"[servergroup] Panel v1.0",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(9,18,190,409,false,GUIEditor_Window[1]) guiGridListAddColumn(GUIEditor_Grid[1],"Players",0.6) GUIEditor_Button[1] = guiCreateButton(200,25,158,42,"servergroup_assigned",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"clear-normal") GUIEditor_Button[2] = guiCreateButton(425,28,170,40,"servergroup_revoked",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[2],"clear-normal") GUIEditor_Image[1] = guiCreateStaticImage(262,118,318,264,"images/mtalogo.png",false,GUIEditor_Window[1]) function loadPlayersToGrid() guiGridListClear(GUIEditor_Grid[1]) for index, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow(GUIEditor_Grid[1]) guiGridListSetItemText(GUIEditor_Grid[1],row,1,tostring(getPlayerName(player)),false,false) end end loadPlayersToGrid() addEventHandler("onClientPlayerJoin",root,loadPlayersToGrid) addEventHandler("onClientPlayerQuit",root,loadPlayersToGrid) addEventHandler("onClientPlayerChangeNick",root,loadPlayersToGrid) addEventHandler("onClientGUIClick",root, function () if (source == GUIEditor_Button[1]) then local row,col = guiGridListGetSelectedItem(GUIEditor_Grid[1]) if (row and col and row ~= -1 and col ~= -1) then local playerName = guiGridListGetItemText(GUIEditor_Grid[1], row, 1) local player = getPlayerFromName(playerName) if (player) then playSound("sounds/servergroup_assigned.wav") triggerServerEvent("assignGroup",localPlayer,player,false) end end elseif (source == GUIEditor_Button[2]) then local row,col = guiGridListGetSelectedItem(GUIEditor_Grid[1]) if (row and col and row ~= -1 and col ~= -1) then local playerName = guiGridListGetItemText(GUIEditor_Grid[1], row, 1) playSound("sounds/servergroup_revoked.wav") triggerServerEvent("RevokedGroup",localPlayer,player,false) end end end end ) function toggleGUI() if guiGetVisible(GUIEditor_Window[1]) == true then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) else guiSetVisible(GUIEditor_Window[1],true) showCursor(true) end end addEvent("toggleGUI",true) addEventHandler("toggleGUI",root,toggleGUI) serverSide .. addEvent("assignGroup",true) --- the good guy addEventHandler("assignGroup",root, --- the good guy function (player, assign) if (player) then if (assign) then setElementData(player,"Account","Registred !") -- set the Cloumn data on scoreboard outputChatBox(getPlayerName(player) .. " [ serverGroup_assigned] ! ",255,255,0) local teams = getElementsByType("team") for i,team in ipairs(teams) do --- i want get any team but Spectator local teamName = getTeamName(team) -- get the other teams setPlayerTeam(player,teamName) --- set any team but Spectator and get his account to save his team end addEvent("RevokedGroup",true) --- the Bad guy addEventHandler("RevokedGroup",root, --- the Bad guy function (player, Revoked) if (player) then if (Revoked) then setElementData(player,"Account"," Revoked !") -- set the Cloumn data on scoreboard outputChatBox(getPlayerName(player) .. " [ serverGroup_Revoked !] ! ",255,255,0) if getTeamFromName ( "Spectator" ) then setPlayerTeam(player, getTeamFromName ( "Spectator" )) --- always if he join set him this team unless if he assigned local account = getPlayerAccount(player) if (account) then removeAccount(account) -- remove his account to end addEventHandler("onPlayerJoin",root, function () bindKey(source,"F3","down",showGUI) end) addEventHandler("onResourceStart",resourceRoot, function () for index, player in ipairs(getElementsByType("player")) do bindKey(player,"F3","down",showGUI) end end) function showGUI(thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)),aclGetGroup("Admin")) then triggerClientEvent(thePlayer,"toggleGUI",thePlayer) else outputChatBox("You must be an Admin",thePlayer,255,0,0) end end exports.dxscoreboard:scoreboardAddColumn( "Account" )
-
no i want to set the player team and remove HIS account when he presses on "servergroup_revoked
-
maybe your script has errors ?
-
https://wiki.multitheftauto.com/wiki/RemoveAccount so the server can remmeber him if he registerd then he can play else move him to team .. and Remove his Account i have add small things see GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Grid = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(448,205,604,391,"[servergroup] Panel v1.0",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(9,18,190,409,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Players",0.6) for i = 1, 1 do guiGridListAddRow(GUIEditor_Grid[1]) end GUIEditor_Button[1] = guiCreateButton(200,25,158,42,"servergroup_assigned",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"clear-normal") GUIEditor_Button[2] = guiCreateButton(425,28,170,40,"servergroup_revoked",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[2],"clear-normal") GUIEditor_Image[1] = guiCreateStaticImage(262,118,318,264,"images/mtalogo.png",false,GUIEditor_Window[1]) function loadPlayersToGrid() guiGridListClear(GUIEditor_Grid[1]) for index, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow(GUIEditor_Grid[1]) guiGridListSetItemText(GUIEditor_Grid[1],row,1,tostring(getPlayerName(player)),false,false) end end loadPlayersToGrid() addEventHandler("onClientPlayerJoin",root,loadPlayersToGrid) addEventHandler("onClientPlayerQuit",root,loadPlayersToGrid) addEventHandler("onClientPlayerChangeNick",root,loadPlayersToGrid) addEventHandler("onClientGUIClick",root, function () if (source == GUIEditor_Button[1]) then local row,col = guiGridListGetSelectedItem(GUIEditor_Grid[1]) if (row and col and row ~= -1 and col ~= -1) then local playerName = guiGridListGetItemText(GUIEditor_Grid[1], row, 1) local player = getPlayerFromName(playerName) outputChatBox(" [ ServerGroup_assigned ] !",source, 255,255,0) playSound("sounds/servergroup_assigned.wav") outputChatBox(getPlayerName(player) .. " [ serverGroup_assigned] ! ",255,255,0) setElementData(source,"why","Registred !") end elseif (source == GUIEditor_Button[2]) then local row,col = guiGridListGetSelectedItem(GUIEditor_Grid[1]) if (row and col and row ~= -1 and col ~= -1) then local playerName = guiGridListGetItemText(GUIEditor_Grid[1], row, 1) local player = getPlayerFromName(playerName) local why = getElementData(source,"Account") playSound("sounds/servergroup_revoked.wav") outputChatBox(getPlayerName(player) .. " [ servergroup_revoked] ! ",255,0,0) setElementData(source,"why" ,"Blocked !") triggerClientEvent(source,"move",source) end end end ) function toggleGUI() if guiGetVisible(GUIEditor_Window[1]) == true then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) else guiSetVisible(GUIEditor_Window[1],true) showCursor(true) end end addEvent("toggleGUI",true) addEventHandler("toggleGUI",root,toggleGUI) exports.scoreboard:addScoreboardColumn('Account') function wow () local what = getTeamFromName ( "spectator" ) if ( what ) then setPlayerTeam ( source, what ) end end addEvent("move",true) addEventHandler("move",source,move)
-
No Man there is team in BaseMode Name spectator i want i admin press button 2 then move the Player to this team and remove his a Account GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Grid = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(448,205,604,391,"[servergroup] Panel v1.0",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(9,18,190,409,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Players",0.6) for i = 1, 1 do guiGridListAddRow(GUIEditor_Grid[1]) end GUIEditor_Button[1] = guiCreateButton(200,25,158,42,"servergroup_assigned",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"clear-normal") GUIEditor_Button[2] = guiCreateButton(425,28,170,40,"servergroup_revoked",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[2],"clear-normal") GUIEditor_Image[1] = guiCreateStaticImage(262,118,318,264,"images/mtalogo.png",false,GUIEditor_Window[1]) function loadPlayersToGrid() guiGridListClear(GUIEditor_Grid[1]) for index, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow(GUIEditor_Grid[1]) guiGridListSetItemText(GUIEditor_Grid[1],row,1,tostring(getPlayerName(player)),false,false) end end loadPlayersToGrid() addEventHandler("onClientPlayerJoin",root,loadPlayersToGrid) addEventHandler("onClientPlayerQuit",root,loadPlayersToGrid) addEventHandler("onClientPlayerChangeNick",root,loadPlayersToGrid) addEventHandler("onClientGUIClick",root, function () if (source == GUIEditor_Button[1]) then local row,col = guiGridListGetSelectedItem(GUIEditor_Grid[1]) if (row and col and row ~= -1 and col ~= -1) then local playerName = guiGridListGetItemText(GUIEditor_Grid[1], row, 1) local player = getPlayerFromName(playerName) outputChatBox(" [ ServerGroup_assigned ] !",source, 255,255,0) playSound("sounds/servergroup_assigned.wav") outputChatBox(getPlayerName(player) .. " [ serverGroup_assigned] ! ",255,255,0) end elseif (source == GUIEditor_Button[2]) then local row,col = guiGridListGetSelectedItem(GUIEditor_Grid[1]) if (row and col and row ~= -1 and col ~= -1) then local playerName = guiGridListGetItemText(GUIEditor_Grid[1], row, 1) local player = getPlayerFromName(playerName) playSound("sounds/servergroup_revoked.wav") outputChatBox(getPlayerName(player) .. " [ servergroup_revoked] ! ",255,0,0) local what = getTeamFromName ( "spectator" ) if ( what ) then setPlayerTeam ( source, what ) end end end end) function toggleGUI() if guiGetVisible(GUIEditor_Window[1]) == true then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) else guiSetVisible(GUIEditor_Window[1],true) showCursor(true) end end addEvent("toggleGUI",true) addEventHandler("toggleGUI",root,toggleGUI)
-
i dont need SpawnPlayer iam using BaseMode Hi i want to Make a script that if the player joined the server then dont let him play move him to spectator team and if source == button 1 then Play sound servergroup_assigned then he can Play in server move him to any team and if source == button 2 then removeAccountData and then always move him to spectator team if he join the server and if admin press button 2
-
see my post edited !
-
Hi i want to Make a script that if the player joined the server then dont let him play move him to spectator team and if source == button 1 then Play sound servergroup_assigned then he can Play in server move him to any team and if source == button 2 then removeAccountData and then always move him to spectator team if he join the server and if admin press button 2 i just made the half of it GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Grid = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(448,205,604,391,"[servergroup] v1.0",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(9,18,190,409,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Players",0.2) for i = 1, 1 do guiGridListAddRow(GUIEditor_Grid[1]) end GUIEditor_Button[1] = guiCreateButton(200,25,158,42,"servergroup_assigned",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"clear-normal") GUIEditor_Button[2] = guiCreateButton(425,28,170,40,"servergroup_revoked",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[2],"clear-normal") GUIEditor_Image[1] = guiCreateStaticImage(262,118,318,264,"images/mtalogo.png",false,GUIEditor_Window[1]) function loadPlayersToGrid() guiGridListClear(GUIEditor_Grid[1]) for index, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow(GUIEditor_Grid[1]) guiGridListSetItemText(GUIEditor_Grid[1],row,1,tostring(getPlayerName(player)),false,false) end end loadPlayersToGrid() addEventHandler("onClientPlayerJoin",root,loadPlayersToGrid) addEventHandler("onClientPlayerQuit",root,loadPlayersToGrid) addEventHandler("onClientPlayerChangeNick",root,loadPlayersToGrid) addEventHandler("onClientGUIClick",root, function () if (source == GUIEditor_Button[1]) then local row,col = guiGridListGetSelectedItem(GUIEditor_Grid[1]) if (row and col and row ~= -1 and col ~= -1) then local playerName = guiGridListGetItemText(GUIEditor_Grid[1], row, 1) local player = getPlayerFromName(playerName) outputChatBox(" [serverGroup_assigned ] !",source, 255,255,0) playSound("sounds/servergroup_assigned.wav") outputChatBox(getPlayerName(player) .. " [serverGroup assigned ] !",255,255,0) end elseif (source == GUIEditor_Button[2]) then local row,col = guiGridListGetSelectedItem(GUIEditor_Grid[1]) if (row and col and row ~= -1 and col ~= -1) then local playerName = guiGridListGetItemText(GUIEditor_Grid[1], row, 1) local player = getPlayerFromName(playerName) local what = getTeamFromName ( "spectator" ) if ( what ) then setPlayerTeam ( source, what ) outputChatBox("[serverGroup_revoked] !",source, 255,255,0) playSound("sounds/servergroup_revoked.wav") outputChatBox(getPlayerName(player) .. "[ servergroup_revoked] !",0,255,255) end end end end) function toggleGUI() if guiGetVisible(GUIEditor_Window[1]) == true then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) else guiSetVisible(GUIEditor_Window[1],true) showCursor(true) end end addEvent("toggleGUI",true) addEventHandler("toggleGUI",root,toggleGUI)