Minigun Timer [reps+]
#4

coded in ZCMD.

pawn Код:
CMD:minigunevent(playerid)
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "You are not admin"); //requires RCON, can be changed if you have a custom admin system
    for(new i; i<MAX_PLAYERIS; i++)
    {
        if(IsPlayerConnected(i))
        {
            GivePlayerWeapon(playerid, 38, 999999);
        }
    }
    SetTimer("RemoveMinigun", 60000, false);
    SendClientMessageToAll(-1, "The minigun event has been activated by an admin!");
    return 1;
}

forward RemoveMinigun();
public RemoveMiniGun()
{
    for(new i; i>MAX_PLAYERS, i++)
    {
        if(GetPlayerWeapon(i) == 38)
        {
            ResetPlayerWeapons(i);
        }
    }
    return 1;
}
That should work
Reply


Messages In This Thread
Minigun Timer [reps+] - by SPA - 25.02.2014, 22:44
Re: Minigun Timer [reps+] - by ZeroTheScyther - 25.02.2014, 23:07
Re: Minigun Timer [reps+] - by Threshold - 25.02.2014, 23:19
Re: Minigun Timer [reps+] - by Mattakil - 25.02.2014, 23:19
Re: Minigun Timer [reps+] - by ZeroTheScyther - 25.02.2014, 23:23
Re: Minigun Timer [reps+] - by Mattakil - 25.02.2014, 23:48
Re: Minigun Timer [reps+] - by Threshold - 26.02.2014, 00:41
Re: Minigun Timer [reps+] - by SPA - 26.02.2014, 10:01

Forum Jump:


Users browsing this thread: 1 Guest(s)