SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 26/06/2019, 04:15 PM   #1
playstores
Big Clucker
 
Join Date: Feb 2018
Posts: 148
Reputation: 3
Default Team-Problem

https://pastebin.com/WruyBv5q

I never get in the Blue Team, both have 0 Players.

And the GameText doesn't show me "you are in the RED" Team in Red.
playstores is offline   Reply With Quote
Old 26/06/2019, 04:28 PM   #2
SiaReyes
Huge Clucker
 
SiaReyes's Avatar
 
Join Date: Mar 2019
Location: Coordinates X,Y,Z
Posts: 308
Reputation: 22
Default Re: Team-Problem

You can use this method!
pawn Code:
if(PlayerInfo[playerid][pTeam]==0)
{
    if(GetCurrentTeamPlayers(1) <= GetCurrentTeamPlayers(2))
    {
         // set player team 1
    }
    else if(GetCurrentTeamPlayers(2) <= GetCurrentTeamPlayers(1))
    {
           // set player team 2
    }
}


//Make
for(new i = GetPlayerPoolSize(); i !=-1; i--)
///To
for(new i = 0,j = GetPlayerPoolSize();i <= j;i++)
__________________
I will be back soon.

Quote:
Originally Posted by Toroi View Post
blackmail people that join your server using their ip address as hostage

or get a job and play sa-mp for fun
SiaReyes is offline   Reply With Quote
Old 26/06/2019, 05:29 PM   #3
playstores
Big Clucker
 
Join Date: Feb 2018
Posts: 148
Reputation: 3
Default Re: Team-Problem

This does not work either
playstores is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[REP+]Get Team Problem. SWGamer Scripting Help 4 25/09/2014 02:47 PM
Problem GF say-team Th3EvillEye Scripting Help 0 22/01/2012 08:29 AM
team problem muhib777 Help Archive 4 02/05/2011 10:11 AM
[HELP] Team problem Hudgens Help Archive 5 17/03/2011 09:33 PM
Team problem MB@ Help Archive 1 28/09/2009 06:53 PM


All times are GMT. The time now is 04:14 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.