29.01.2011, 10:02
i have this me command, why does it close the serveR?
pawn Код:
COMMAND:shout(playerid, params[])
{
if(sscanf(params, "s", playerid)) return SendClientMessage(playerid, Yellow, "Usage: /shout <message>");
new string[128];
if((gettime()-LastShout[playerid]) < 20) {
format(string, 128, "You have to wait %d seconds before shout", (20-(gettime()-LastShout[playerid])));
SendClientMessage(playerid, Red, string); return 1;
}
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), "( SHOUT ) %s(ID: %d) %s:", string);
SendClientMessageToAll(White, string);
LastShout[playerid] = gettime();
return 1;
}