Jump to content

Recommended Posts

Posted

Buna seara, scuzati-mi deranjul, dar am o intrebare . Cum asa putea sa pun o melodie ( sau mai multe) pe server-ul de samp , sa se auda la toti playerii, printr-o comanda ? ..

Posted
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;
}

 

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.