Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new TimerT3,T3Count;
- CMD:t3countdown(playerid,params[]) {
- #pragma unused params
- if(PlayerInfo[playerid][T3] < 12) return SendClientMessage(playerid, 0xFF0000AA, "You have to be T3 rank 12+ to use this command");
- TimerT3 = SetTimer("T3Count1",1000,1);
- T3Count=6;
- return 1;
- }
- forward T3Count1();
- public T3Count1() {
- T3Count= T3Count - 1;
- for(new i = 0; i < MAX_PLAYERS; i++) {
- if(IsPlayerConnected(i) && PlayerInfo[i][T3] > 0) {
- if(T3Count==0){
- KillTimer(TimerT3);
- GameTextForPlayer(i,"~g~GO!", 3000, 6);
- PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
- }else{
- new string[32];
- format(string,sizeof string,"~r~T3 Countdown: ~w~%d",T3Count);
- GameTextForPlayer(i, string, 1000, 6);
- PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement