xXGhostXx Posted September 7, 2018 Share Posted September 7, 2018 Hi guys . How to make faction system ? please give me the functions . thanks. Link to comment
Dimos7 Posted September 7, 2018 Share Posted September 7, 2018 What do you mean can explane more? Link to comment
xXGhostXx Posted September 8, 2018 Author Share Posted September 8, 2018 7 hours ago, Dimos7 said: What do you mean can explane more? 1.Make leader and member 2.Set rank members by leader 3.Vehicle in HQ And all of them. Link to comment
AncienT Posted September 8, 2018 Share Posted September 8, 2018 6 minutes ago, xXGhostXx said: 1.Make leader and member 2.Set rank members by leader 3.Vehicle in HQ And all of them. What? Link to comment
xXGhostXx Posted September 8, 2018 Author Share Posted September 8, 2018 2 hours ago, AncienT said: What? i want faction system ! Abilitys : 1. Promote leader by Admin ACL group 2. Haves ranks faction : Rank 1 - Rank 2 - Rank 3 - Rank 4 - Rank 5 - Sub-Leader - Leader 3. Set rank faction members . /setrank <PartOfName> <Number> ( By Leader ) 4. Haves faction vehicle . 5. Respawn all vehicle in faction HQ by Leader and Sub-Leader. /respawnveh 6. Demote leader by Admin 7. Color name in nametags and scoreboard for factions. Link to comment
AncienT Posted September 8, 2018 Share Posted September 8, 2018 Just now, xXGhostXx said: i want faction system ! Abilitys : 1. Promote leader by Admin ACL group 2. Haves ranks faction : Rank 1 - Rank 2 - Rank 3 - Rank 4 - Rank 5 - Sub-Leader - Leader 3. Set rank faction members . /setrank <PartOfName> <Number> ( By Leader ) 4. Haves faction vehicle . 5. Respawn all vehicle in faction HQ by Leader and Sub-Leader. /respawnveh 6. Demote leader by Admin 7. Color name in nametags and scoreboard for factions. This is group system? Link to comment
xXGhostXx Posted September 8, 2018 Author Share Posted September 8, 2018 1 minute ago, AncienT said: This is group system? i dont know ! What is the best? Link to comment
AncienT Posted September 8, 2018 Share Posted September 8, 2018 1 minute ago, xXGhostXx said: i dont know ! What is the best? You can look for one in the community https://community.multitheftauto.com/index.php?p=resources&s=list&name=group&descr=&category= Link to comment
iMr.WiFi..! Posted September 8, 2018 Share Posted September 8, 2018 (edited) executeSQLQuery dbConnect dbQuery dbPoll Use what you like db functions, or executeSQLQuery functions. this is all functions you need. except simple functions like: outputChatbox, and i think you don't wanna to consider it. And i prefer to use SQL with system like this, not recommended to use Admin ACL. Edited September 8, 2018 by iMr.WiFi..! Link to comment
xXGhostXx Posted September 8, 2018 Author Share Posted September 8, 2018 4 minutes ago, iMr.WiFi..! said: executeSQLQuery dbConnect dbQuery dbPoll Use what you like db functions, or executeSQLQuery functions. this is all functions you need. except simple functions like: outputChatbox, and i think you don't wanna to consider it. And i prefer to use SQL with system like this, not recommended to use Admin ACL. You suggest to make ACL ? Link to comment
iMr.WiFi..! Posted September 8, 2018 Share Posted September 8, 2018 Just now, xXGhostXx said: You suggest to make ACL ? No, i said it's not good to use acl with system you want. Link to comment
xXGhostXx Posted September 8, 2018 Author Share Posted September 8, 2018 Just now, iMr.WiFi..! said: No, i said it's not good to use acl with system you want. How can i make respawn vehicle script ? Link to comment
iMr.WiFi..! Posted September 8, 2018 Share Posted September 8, 2018 Just now, xXGhostXx said: How can i make respawn vehicle script ? Save the spawn positions into SQL. Get the spawn positions from SQL. Spawn the vehicle with positions you get. Link to comment
xXGhostXx Posted September 8, 2018 Author Share Posted September 8, 2018 1 minute ago, iMr.WiFi..! said: Save the spawn positions into SQL. Get the spawn positions from SQL. Spawn the vehicle with positions you get. i have a question : This is my code for Admin PM Script. Admin PM from admin to players. function adminpm ( thePlayer, command, taraf,... ) local message = table.concat ({...}, " ") if not ( isPlayerOnGroup ( thePlayer ) ) then outputChatBox("#ff0000[Error]: #ffffffShoma Dastresi Be In Dastoor Nadarid!", thePlayer, 255, 255, 255, true) return false end if taraf == nil then outputChatBox("#00ff00Bezan: /pm <PartOfName> <Matn>", thePlayer, 255, 255, 255, true) return false end if not findPlayer(taraf) then outputChatBox("#ff0000[Error]: #ffffffPlayer Peyda Nashod!", thePlayer, 255, 255, 255, true) return false end local playerpm = findPlayer(taraf) local nameadmin = getPlayerName( thePlayer ) outputChatBox("#F39C12<< Be " ..taraf.. ": " ..message.. " >>", thePlayer, 255, 255, 255, true) outputChatBox("#F39C12<< [Admin PM] " ..nameadmin.. ": " ..message.. " >>", playerpm, 255, 255, 255, true) end addCommandHandler("pm", adminpm) When i use /pm <PartOfName> An empty message will be sent. please fix my script Link to comment
iMr.WiFi..! Posted September 8, 2018 Share Posted September 8, 2018 Just now, xXGhostXx said: i have a question : This is my code for Admin PM Script. Admin PM from admin to players. function adminpm ( thePlayer, command, taraf,... ) local message = table.concat ({...}, " ") if not ( isPlayerOnGroup ( thePlayer ) ) then outputChatBox("#ff0000[Error]: #ffffffShoma Dastresi Be In Dastoor Nadarid!", thePlayer, 255, 255, 255, true) return false end if taraf == nil then outputChatBox("#00ff00Bezan: /pm <PartOfName> <Matn>", thePlayer, 255, 255, 255, true) return false end if not findPlayer(taraf) then outputChatBox("#ff0000[Error]: #ffffffPlayer Peyda Nashod!", thePlayer, 255, 255, 255, true) return false end local playerpm = findPlayer(taraf) local nameadmin = getPlayerName( thePlayer ) outputChatBox("#F39C12<< Be " ..taraf.. ": " ..message.. " >>", thePlayer, 255, 255, 255, true) outputChatBox("#F39C12<< [Admin PM] " ..nameadmin.. ": " ..message.. " >>", playerpm, 255, 255, 255, true) end addCommandHandler("pm", adminpm) When i use /pm <PartOfName> An empty message will be sent. please fix my script Open another topic for this problem. Link to comment
xXGhostXx Posted September 8, 2018 Author Share Posted September 8, 2018 Just now, iMr.WiFi..! said: Open another topic for this problem. Topic link : Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now