[HELP] /ar bugs the whole server| Helpers in /newb bug the whole server
#1

When admin does /ar (accepting report) the whole server restarts or stops sometimes
Also when Helpers use /newb the whole server restarts or stops


Please help ASAP
Reply
#2

post the codes
Reply
#3

I will give you an example of Newbie chat.

On top under your includes:

pawn Код:
new NeedToWait[MAX_PLAYERS];
And anywhere in your script, MAKESURE do not post it under any callback, Also you might need Zcmd include though if you don't have it.

pawn Код:
COMMAND:newb(playerid, params[])
{
    new string[128];
    new Message[128];
    new NewbSender[MAX_PLAYER_NAME];

    if(sscanf(params, "s", Message))
    {
        SendClientMessage(playerid, 0xF88017FF, "Correct Usage: /Newb (Message).");
        SendClientMessage(playerid, 0xF88017FF, "Function: Will send your question in Newbie chat.");
        return 1;
    }
    if(GetTickCount() - NeedToWait[playerid] <  30000) return SendClientMessage(playerid, 0xF88017FF,"You can only ask an question once every 30 seconds.");
    NeedToWait[playerid] = GetTickCount();
    {
        GetPlayerName(playerid, NewbSender, sizeof(NewbSender));
        format(string,sizeof(string),"Newbie %s: %s",NewbSender,Message);
        SendClientMessageToAll(0xF88017FF,string);
        return 1;
    }
}
Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)