Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Gito Baloch on Mar 29, 2020, 12:41 PM

Title: How to set Limit in duels?
Post by: Gito Baloch on Mar 29, 2020, 12:41 PM
can you guys tell me How to set Duel Player Limit i mean if two players join a duel so third player cannot join how to do this?
Title: Re: How to set Limit in duels?
Post by: KX on Mar 29, 2020, 02:17 PM
Quote from: Gitobaloch on Mar 29, 2020, 12:41 PMcan you guys tell me How to set Duel Player Limit i mean if two players join a duel so third player cannot join how to do this?
No unless you share your duel code here.
Title: Re: How to set Limit in duels?
Post by: Gito Baloch on Mar 30, 2020, 05:15 AM
I don't code still i'll start coding after i know how to set limit in duels?
Title: Re: How to set Limit in duels?
Post by: NicusorN5 on Mar 30, 2020, 12:32 PM
Use a counter. Simple as that.
Title: Re: How to set Limit in duels?
Post by: =RK=MarineForce on Mar 30, 2020, 01:08 PM
look another person duel systen n you will get a solution then u can make it by ur self.
Title: Re: How to set Limit in duels?
Post by: Gito Baloch on Mar 30, 2020, 03:17 PM
your replies didn't help me give me a code that i will get idea how to do that.
Title: Re: How to set Limit in duels?
Post by: KX on Mar 31, 2020, 12:46 AM
Quote from: Gitobaloch on Mar 30, 2020, 03:17 PMyour replies didn't help me give me a code that i will get idea how to do that.
local counter = 0; //create a counter variable with default value 0counter++; // increase the counter when a player joins duel
if(count >= 2) return MessagePlayer(player, "A fool is trying to limit players"); //Check when player tries to join duel
Title: Re: How to set Limit in duels?
Post by: Gito Baloch on Mar 31, 2020, 04:59 AM
i am asking for help not for being insulted by you motherfucker behave good why the fuck you are using these words in code?
Title: Re: How to set Limit in duels?
Post by: Xmair on Mar 31, 2020, 07:38 AM
Quote from: Gitobaloch on Mar 31, 2020, 04:59 AMi am asking for help not for being insulted by you motherfucker behave good why the fuck you are using these words in code?
People like you are the reason why VCMP devs don't want to work on VCMP anymore. Go get a general idea of squirrel first and learn to appreciate when people take time off their busy schedules to make a snippet for you. You've tried nothing and just came asking for help.