14.04.2011, 23:25
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;
}