Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

make spamming?

$
0
0
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
Code:

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));
}


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>