Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define KFMCOUNT 5
- new KFCount = KFMCOUNT;
- CMD:kfcount(playerid,params[]) {
- if(PlayerInfo[playerid][KF] >= 7) {
- SetTimer("KFCount1", 1000, 0);
- return 1;
- } else return SendClientMessage(playerid, red,"ERROR: You need to be KF member rank 7 to use this command");
- }
- forward public KFCount1();
- public KFCount1() {
- if(KFCount > 0) {
- for(new i = 0; i < MAX_PLAYERS; i++) {
- if(IsPlayerConnected(i) && PlayerInfo[i][KF] > 0) {
- new string[10];
- format(string,sizeof string,"~w~%d",KFCount);
- GameTextForPlayer(i, string, 1000, 6);
- TogglePlayerControllable(i, 0);
- }
- }
- KFCount --;
- SetTimer("KFCount1", 1000, 0);
- return 1;
- }
- else if(KFCount <= 0) {
- for(new i = 0; i < MAX_PLAYERS; i++) {
- if(IsPlayerConnected(i) && PlayerInfo[i][KF] > 0) {
- GameTextForPlayer(i,"~r~GO GO GO", 3000, 6);
- TogglePlayerControllable(i, 1);
- }
- }
- }
- KFCount = 5;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment