How to make a SendClientMessage
#5

Quote:
Originally Posted by afei™
In case i understood you right.. Make a timer which checks whether a player has less money than 0 or not. If the player has less than 0 send him the message.

simple loop
Код:
for( new i = 0; i < MAX_PLAYERS; i++ )
{
    if( GetPlayerMoney(i) < 0 )
    {
        SendClientMessage( i, color, msg );
    }
}
Hi there,

This will just spam the user hundred of times until he earns some money. That's stupid.

Have fun scripting.

Kind regards,

Francis Morissette
SA-MP Scripter
http://sa-mp.com
Reply


Messages In This Thread
How to make a SendClientMessage - by aspire5630 - 19.04.2009, 13:16
Re: How to make a SendClientMessage - by kingcesar - 19.04.2009, 13:24
Re: How to make a SendClientMessage - by aspire5630 - 19.04.2009, 13:41
Re: How to make a SendClientMessage - by afei - 19.04.2009, 13:52
Re: How to make a SendClientMessage - by Francis[French] - 19.04.2009, 14:17
Re: How to make a SendClientMessage - by maij - 19.04.2009, 14:25
Re: How to make a SendClientMessage - by afei - 19.04.2009, 14:26
Re: How to make a SendClientMessage - by Rks25 - 19.04.2009, 14:29
Re: How to make a SendClientMessage - by maij - 19.04.2009, 14:31
Re: How to make a SendClientMessage - by Rks25 - 19.04.2009, 14:34

Forum Jump:


Users browsing this thread: 2 Guest(s)