Jump to content

Help,help.


Addict

Recommended Posts

Spoiler

CMD:playforall(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        new link[256];
        if(sscanf(params, "s[256]", link)) return SCM(playerid, -1, "Syntax: /playforall [link]");
        foreach(Player, x)
        {
            StopAudioStreamForPlayer(x);
            PlayAudioStreamForPlayer(x, link);
        }
    }
    return 1;
}
stock IsMonth31(month)
{
     switch (month)
    {
        case 1: return 1;
        case 3: return 1;
        case 5: return 1;
        case 7: return 1;
        case 8: return 1;
        case 10: return 1;
        case 12: return 1;
        default: return 0;
    }
    return 0;
}

stock IsMonth29(year)
{
     new y = 2000;
     for(new i = 4; i < 3000; i += 4) if ((y+i) == year) return 1;
     return 0;
}

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.