Help With Error please
#8

Quote:
Originally Posted by Dwane
Посмотреть сообщение
Edit: Too late! I didn't see, it solved.
pawn Код:
CMD:redalert(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return 0;
    new string[128], aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, sizeof(aname));
    GameTextForAll("~r~Red Alert", 7000, 4);
    format(string, sizeof(string), "Admin: %s has called Red Alert", aname);
    SendClientMessageToAll(0xAA3333AA, string);
    SendClientMessageToAll(0xAA3333AA, "You will all be kicked in ten seconds.");
    RedAlertTimer = SetTimer("KickAll", 10000, 0);
    SendClientMessage(playerid, 0xFFFF00AA, "Red Alert Successful. To Abort Type /abort");
    printf("%s has initialized the red alert countdown.", aname);
    return 1;
}
CMD:abort(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return 0;
    new string[128], aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, sizeof(aname));
    GameTextForAll("~y~Red Alert Aborted", 7000, 4);
    format(string, sizeof(string), "Admin: %s has canceled the Red Alert", aname);
    SendClientMessageToAll(0x33AA33AA, string);
    KillTimer(RedAlertTimer);
    SendClientMessage(playerid, 0xFFFF00AA, "Red Alert Abort Successful.");
    printf("%s has cancelled the red alert countdown.", aname);
    return 1;
}

forward KickAll();
public KickAll()
{
    for(new i = 0; i < MAX_PLAYERS; i++) {
        if(IsPlayerConnected(i)) {
            Kick(i);
        }
    }
}
no dude your not to late we have more new beginners scripter are needing our help which means its not to late to help someone keep your great work Dwane
Reply


Messages In This Thread
Help With Error please - by RoleplayEditor - 09.01.2012, 11:13
Re: Help With Error please - by ScriptJorkis - 09.01.2012, 11:19
Re: Help With Error please - by RoleplayEditor - 09.01.2012, 11:23
Re: Help With Error please - by ScriptJorkis - 09.01.2012, 11:48
Re: Help With Error please - by ScriptJorkis - 09.01.2012, 11:58
Re: Help With Error please - by RoleplayEditor - 09.01.2012, 12:04
Re: Help With Error please - by Konstantinos - 09.01.2012, 12:05
Re: Help With Error please - by ScriptJorkis - 09.01.2012, 12:08
Re: Help With Error please - by Guest9328472398472 - 09.01.2012, 12:14
Re: Help With Error please - by ScriptJorkis - 09.01.2012, 12:15

Forum Jump:


Users browsing this thread: 1 Guest(s)