Prevent OnPlayerRequestSpawn repeating?
#1

Hello, At the moment I have this for my onplayerrequest spawn calback:

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if(PlayerNotLoggedIntoAcc[playerid] == true){
        SendClientMessage(playerid, COLOR_RED, "Please /login first");
        return 0;
    }
    return 1;
}
When i press Shift in my script to spawn, it repeats the SendClientMessage about 4 times a second. Is there an easy fix to this? If not ill just make a varaible and timer.
Reply


Messages In This Thread
Prevent OnPlayerRequestSpawn repeating? - by DarrenReeder - 21.07.2012, 19:24
Re: Prevent OnPlayerRequestSpawn repeating? - by namespace - 21.07.2012, 19:25
Re: Prevent OnPlayerRequestSpawn repeating? - by DarrenReeder - 21.07.2012, 19:41

Forum Jump:


Users browsing this thread: 1 Guest(s)