02.02.2016, 15:58
PHP код:
new last[MAX_PLAYERS]; //global
COMMAND:hello(playerid,params[])
{
if(last[playerid] < gettime())
{
last[playerid] = gettime()+5;
//your "hello"-command
return 1;
}
else
{
new string[145];
format(string,sizeof(string),"You have to wait %i seconds.",last[playerid]-gettime());
SendClientMessage(playerid,-1,string);
}
return 1;
}
@Sascha:
SendClientMessage can maximal sends 145 letters.