SendclientMessage is a spam!
#1

pawn Код:
...blablalbbalablab...
            format(var, 32, "%d pIp\n",PlayerInfo[playerid][pIp]);fwrite(hFile, var);
            fclose(hFile);
        }
    }
    else
    {
SendClientMessage(playerid, COLOR_YELLOW, "You do not have an account, type /register <password>"); //THIS LINE
    }
    if (gdebug){printf("DEBUG OnPlayerUpdate(%d)End", playerid);}
    return 1;
}
Ok the THIS LINE is supposed to be shown for people who spawn without having an account an without registering. Problem is that it keeps showing that line every 2 seconds like a spam. How to fix?
Reply
#2

Just wondering, is that in OnPlayerUpdate ??..
Reply
#3

Why yes it is! Now how to fix it?
Reply
#4

Quote:
Originally Posted by Seif_
Quote:
Originally Posted by ➘Digger➚
Why yes it is! Now how to fix it?
OnPlayerUpdate is a command called every 60ms.
And?
Reply
#5




Quote:
Originally Posted by Seif_
Quote:
Originally Posted by ➘Digger➚
Why yes it is! Now how to fix it?
OnPlayerUpdate is a command called every 60ms.
It's actually called everytime the client sends a packet.
Reply
#6

Quote:
Originally Posted by ➘Digger➚
Quote:
Originally Posted by Seif_
Quote:
Originally Posted by ➘Digger➚
Why yes it is! Now how to fix it?
OnPlayerUpdate is a command called every 60ms.
And?
Oh god lets quit scripting.
Reply
#7

No seriously idk what to do
Reply
#8

Quote:
Originally Posted by ➘Digger➚
No seriously idk what to do
Lets think, if it is called every 60ms...
Reply
#9

Quote:
Originally Posted by ➘Digger➚
No seriously idk what to do
Jesus christ, it doesnt take a genius to figure this out.
[me=Blaze09]sits with Digger[/me]

It is called every 60 milliseconds. What do you do?
Reply
#10

Make it under OnPlayerSpawn that if the person spawns without registering or logging in , then the message is shown to him/her
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)