OnPlayerCommandPerformed - PROBLEM
#1

Hello, I'm using this code, but don't work correctly:

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(pLs[playerid][pBlock] > GetTickCount())
        return SendClientMessage(playerid, 0xFF0000FF, "Forbidden commands flood.");
       pLs[playerid][pBlock] = GetTickCount() + 3000;
    if(!success)
        return SendClientMessage(playerid, 0xFF0000FF, "Ops! Unknown Command!");
    return 1;
}
When the flood happens, the message is displayed but the command is executed along
Reply


Messages In This Thread
OnPlayerCommandPerformed - PROBLEM - by SuperChock - 27.12.2011, 22:10
Re: OnPlayerCommandPerformed - PROBLEM - by Mikkel_Pedersen - 27.12.2011, 22:19
Re: OnPlayerCommandPerformed - PROBLEM - by SuperChock - 27.12.2011, 22:52
Re: OnPlayerCommandPerformed - PROBLEM - by BrandyPenguin - 27.12.2011, 22:57
Re: OnPlayerCommandPerformed - PROBLEM - by SuperChock - 27.12.2011, 23:02
Re: OnPlayerCommandPerformed - PROBLEM - by Mikkel_Pedersen - 27.12.2011, 23:03
Re: OnPlayerCommandPerformed - PROBLEM - by SuperChock - 27.12.2011, 23:06
Re: OnPlayerCommandPerformed - PROBLEM - by Mikkel_Pedersen - 27.12.2011, 23:08
Re: OnPlayerCommandPerformed - PROBLEM - by SuperChock - 27.12.2011, 23:12

Forum Jump:


Users browsing this thread: 2 Guest(s)