Balancer - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Balancer (
/showthread.php?tid=202361)
Balancer -
Kitten - 23.12.2010
Solved
Re: Balancer -
WillyP - 24.12.2010
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if(SantaBalancer > 3)
{
GameTextForPlayer ( playerid , " ~r~ ERROR: Santa Team is full please join ELFS " , 6000 , 4 ) ;
SantaBalancer ++;
return 0;
}
return 1;
}
Re: Balancer -
Kitten - 24.12.2010
Solved
Re: Balancer -
WillyP - 24.12.2010
Why don't you try it?
Re: Balancer -
Kitten - 24.12.2010
Solved
Re: Balancer -
WillyP - 24.12.2010
Debug it.
Re: Balancer -
Kitten - 24.12.2010
Solved
Re: Balancer -
WillyP - 24.12.2010
Quote:
Originally Posted by Kitten
Oh ah i feel stupid thanks dude.
|
You're welcome.
Re: Balancer -
The_Gangstas - 24.12.2010
public OnPlayerRequestClass(playerid, classid)
{
if(classid == 0)
{
GameTextForPlayer ( playerid , " ~r~ SANTA " , 6000 , 4 ) ;
SantaBalancer++;
gTeam[playerid] = TEAM_SANTA;
}
return 1;
}
this will ++ everytime someone goes over classid 0 try using it under onplayerrequestspawn. onplayerdisconnect --;
Re: Balancer -
propilot - 24.12.2010
santa and elfs? sounds epic!