(HELP)SendClientMessage
#1

Can someone tell me why this is not work?
pawn Код:
public OnFilterScriptInit()
{
    if SetTimer("AFKKicker", 60000, 1)
    SendClientMessage(i,0xAA3333AA,"You are AFK now");
    return 1;
I got this errors
Quote:

error 001: expected token: "*then", but found "-identifier-"
error 017: undefined symbol "i"

I need that will say me after one minute, im afk
Reply
#2

pawn Код:
public OnFilterScriptInit()
{
    for(new i; i<MAX_PLAYERS; i++) {
        SendClientMessage(i,0xAA3333AA,"You are AFK now");
    }
    SetTimer("AFKKicker", 60000, 1);
    return 1;
}
Reply
#3

Thx
Reply
#4

OnFilterScriptInit() !? Wtf ?
Reply
#5

But i think it don't work in game
Reply
#6

Place it under OnPlayerSpawn or OnPlayerConnect
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)