
zzx
Members-
Posts
61 -
Joined
-
Last visited
Everything posted by zzx
-
the same problem the script creates a clan but i still can vote for redo even if i wasn't in Donators clan.
-
yeah you can come to the server as well
-
No errors in debug i want only the members of the Donators clan in TAB to vote for redo /vr the regular members cannot /vr until they be members of Donators clan
-
pls write me the code man thanks
-
i want someone to make the access to the script is only for a team in tap which we create via admin panel plss example: the team is Donators. [REDO]:You are not a Donator! Please donate to access the command!
-
guys how can i make the accessable to the command is only for a tab team like "donators" for example. local playerVotes = {} local nbVotes = 0 addCommandHandler( "vr", function( player ) if(playerVotes[player] == true) then return outputChatBox("#ff8800[REDO]: #ffffffYou have already voted", source, 255, 0, 0, true) end if not nbVotes then nbVotes = 0 end playerVotes[player] = true nbVotes = nbVotes + 1 if nbVotes >= getPlayerCount() then outputChatBox("", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: #ffffff "..getPlayerName(player).." #ffffffhas voted for redo", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: #ffffffThe current map will be restarted!", root, 255, 0, 0, true) elseif nbVotes == 0 then outputChatBox("", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: "..getPlayerName(player).."#ffffff voted for redo! ["..nbVotes.."/"..playerCount.."]", root, 255, 0, 0, true) outputChatBox("", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: #ffffffThe current map will be restarted by vote!", root, 255, 0, 0, true) g_ForcedNextMap = currentMap outputChatBox("DEBUG: Next map: "..tostring( getMapName(g_ForcedNextMap) ) ) setTimer(function() nbVotes = 0 end, 150*1000, 1) playerVotes = 0 else outputChatBox("", root, 255, 0, 0, true) outputChatBox("#ff8800[REDO]: "..getPlayerName(player).." #ffffffvoted for redo! ["..nbVotes.."/"..playerCount.."]", root, 255, 0, 0, true) end end) plz help!
-
How to make the accessible to the command only for staff, moderators, admins, supermoderators and consoles guys?
-
Dealman thanks <3 I'm very sorry Sam.
-
Stop this Sam. I don't even know who you are.
-
I know that, but what functions and evens i should use to create such script?
-
How can i be create a script to set a longer nick name to the players and more colorcodes in their nicknames?
-
Yo guys, In this tutorial i'm gonna teach you guys how to create a simple script for beginners, so let's start. 1) You have to open a file in C:\Program Files\MTA San Andreas 1.3\server\mods\deathmatch\resources, and then create in it a meta.xml and then create server.lua (optional) where we will build our script. 2) Open meta.xml and copy these lines: "YourName" type="gamemode" name="My Server" description="My first MTA server" version="1.0.0" /> and paste them in the meta file you have created. (these lines will define your script). 3) Open the server.lua (Lua) file. 4) function playerCount ( ) Add this line to the 1st line in Lua file, by the way, this function gives you the players count in the server. 5) function playerCount ( ) outputChatBox("#ff8800[server]: #ffffffPlayers: #ffffff(" .. getPlayerCount() .. "#ffffff)" , root, 255, 0, 0, true) These lines show you players count in the server's chat with a colored words. for example: [server]: Players: (12). 6) addEventHandler ( "onPlayerJoin", getRootElement(), playerCount ) addEventHandler ( "onPlayerQuit", getRootElement(), playerCount ) When a player joins the server he will be counted in the server counter and the counter gives you the entire players number. and the same happen when the player leaves the server. Example: [server]: Players: (12 [When he joins]). [server]: Players: (11 [When he leaves]). 7) Here is the entire code: function playerCount ( ) outputChatBox("#ff8800[server]: #ffffffPlayers: #ffffff(" .. getPlayerCount() .. "#ffffff)" , root, 255, 0, 0, true) end addEventHandler ( "onPlayerJoin", getRootElement(), playerCount ) addEventHandler ( "onPlayerQuit", getRootElement(), playerCount ) If you want any help, you can send me a PM. Peace, Zeldak.
-
יו, אם מישהו הוא חדש בסעיף זה והוא באמת רוצה להיות מכובד ומתקבל בברכה, רק אומר היי כאן, ואנחנו בהחלט מברכים אותך. זכור חבר 'ה, אין קללות, או להשתמש במילים גסות נגד אחרים. תודה.
-
שלום חבר 'ה, אם אתה צריך עזרה ואתה לא יודע למי לספר כדי לעזור לך, אתה יכול לחלוק את הבעיה שלך כאן בנושא הזה ואנחנו איכשהו נעזור לך, אבל, הבעיה תהיה על MTA בלבד. אנו מקווים שחבר 'ה להשתתף וליצור נושאים חדשים בפורום עברית. אני אנסה להיות אדם גדול שיכול למתן את הפורום הזה, אבל אני צריך לעזור לך על ידי יצירת נושאים ולהיות פעילים מספיק. שלום. Zeldak.
-
יש פה מישהו? מדוע בפורום זה הוא ריק, בבקשה בואו נהיה הרבה זמן פעיל כאן
-
You have to change your nick after setting a toptime to set another one with the new nick, if not you only improve your toptime setted time in the list.