SA-MP Forums Archive
Code - 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)
+--- Thread: Code (/showthread.php?tid=615802)



Code - Hunud - 27.08.2016

Is that code ok? Can i make it better? Because SCMToAll spamming chat

Код:
	for(new i=0;i<MAX_PLAYERS;i++)
			{
 				if(gTeam[i] == TEAM_ROBS)
   				{
					GivePlayerMoney(i, 60000);
		       		SetTimer("GM", 4000, false);
		       		SCMToAll(-1, "{0087FF}> Rob win {FFFFFF}u received 60000$ of cash");
				}



Re: Code - K0P - 27.08.2016

Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(gTeam[i] == TEAM_ROBS)
    {
        GivePlayerMoney(i, 60000);
        SendClientMessage(i, -1, "{0087FF}> Rob win {FFFFFF}u received 60000$ of cash");
    }
}

SetTimer("GM", 4000, false); //This must be out of the loop



Re: Code - JakeXxX - 27.08.2016

Also Fix your grammar mistakes.
The sentence should be "Robbers win you recived $60000"


Re: Code - Hunud - 27.08.2016

Thanks!


Re: Code - SickAttack - 27.08.2016

Quote:
Originally Posted by JakeXxX
Посмотреть сообщение
Also Fix your grammar mistakes.
The sentence should be "Robbers win you recived $60000"
Your sentence is also wrong. Even you telling him to fix his grammar is wrong...