31.01.2013, 03:00
Quote:
public DDCountdown() { new string[64]; for(new i=0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(IsPlayerInRangeOfPoint(i,400,-1398.3799,994.8915,1024.0889)) { ddcount --; if(ddcount != 0) { format(string, sizeof(string),"~r~DD Countdown: ~n~~n~%d",ddcount); } else { format(string, sizeof(string),"~r~DD Countdown: ~n~~n~~g~GO GO GO!",ddcount); KillTimer(ddcounttimer); } GameTextForPlayer(i,string,1000,4); new Float:X, Float:Y, Float:Z; GetPlayerPos(i, X,Y,Z); PlayerPlaySound(i, 1056, X, Y, Z); } } } return 1; } |