26.01.2015, 15:35
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(UsarComandos[playerid] < gettime())
{
SendClientMessage(playerid, -1, "Te han disparado, no puedes usar comandos! espera un momento!");
return 0;
}
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}