19.04.2009, 11:13
there is an countdown command,i want to make it like only those players see who are close to him who make /count
so command are here : can someone chanbge it to like that?
and there are
so command are here : can someone chanbge it to like that?
Quote:
public countdown() { if(cd_sec == 0) { GameTextForAll("~r~Go!",1000,3); KillTimer(cd_timer); } else { new string[8]; format(string,sizeof(string),"~g~%d",cd_sec); GameTextForAll(string,1000,3); } cd_sec = cd_sec-1; return 1; } |
Quote:
if(strcmp(cmd,"/count",true)==0) { cd_sec = 5; cd_timer = SetTimer("countdown", 999, 1); return true; } |