/n chat command
#6

It's easy!

pawn Код:
new iNewbieTick[MAX_PLAYERS]; // Outside of functions/callbacks, top of script for example
CMD:n(playerid, params[])
{
    if (isnull(params)) return
        SendClientMessage(playerid, 0xFF3300FF, " Usage: /n <your question>");
     if((GetTickCount() - iNewbieTick[playerid]) < 60000) return SendClientMessage(playerid, -1, "{33CCFF}You have to wait 60 seconds before using that again!");
    new szString[128], szName[28];
    GetPlayerName(playerid, szName, 28);
    format(szString, 128, "{33CCFF}Newbie %s(%d): %s", szName, playerid, params);
    SendClientMessageToAll(-1, szString);
    iNewbieTick[playerid] = GetTickCount();
    return 1;
}
Reply


Messages In This Thread
/n chat command - by seanny - 14.04.2011, 21:55
Re: /n chat command - by Diogo_Bras - 14.04.2011, 22:27
Re: /n chat command - by seanny - 14.04.2011, 23:08
Re: /n chat command - by admantis - 14.04.2011, 23:12
Re: /n chat command - by seanny - 14.04.2011, 23:18
Re: /n chat command - by admantis - 14.04.2011, 23:25

Forum Jump:


Users browsing this thread: 2 Guest(s)