make spamming?
#1

I tried to use "while"
But what I get is a spam ( over than 1000 ) message to the client
What I want to ask, what is "while" and how to use it, I've seen on the wiki sa-mp and I'm still confused

There is my code
pawn Код:
while(TeamACount> = 0) // have 3 team, team B, and C. but i select only team A
{
    new i = Iter_Random(Player);
    if(PlayerTeam[z] == Team_B || PlayerTeam[z] == Team_C) continue;
    SetHealth(z, 500); // i just need one player to make high health and weapon
    GivePlayerWeapon(z, x, x);
    SendTeamMessage(Team_A, "One of your team has been selected to be a god");
    printf("%s selected team A to be a god", GetName(z));
}
Reply


Messages In This Thread
make spamming? - by kloning1 - 01.07.2017, 14:05
Re: make spamming? - by Vince - 01.07.2017, 14:56
Re: make spamming? - by SyS - 01.07.2017, 14:57
Re: make spamming? - by kloning1 - 01.07.2017, 15:11

Forum Jump:


Users browsing this thread: 2 Guest(s)