Convert to STRCMP PLease
#3

pawn Код:
if(!strcmp(cmdtext, "/playall", true))
{
    if(PlayerInfo[playerid][pDJ] < 1) return SendClientMessage(playerid, COLOR_WHITE, "DJ Only Command");
    if(isnull(params))return SendClientMessage(playerid, -1, "/playall [url]");
    for(new i = 0; i < MAX_PLAYERS; i ++)
    {
        PlayAudioStreamForPlayer(i, params);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "You can stop playing this song with /stopall");
        SendClientMessageToAll(COLOR_LIGHTBLUE, "An DJ has started playing a song (use /stopaudio to stop this song for you");
    }
    return 1;
}
if(!strcmp(cmdtext, "/stopall", true))
{
    if(PlayerInfo[playerid][pDJ] < 1) return SendClientMessage(playerid, COLOR_WHITE, "DJ Only Command");
    for(new i = 0; i < MAX_PLAYERS; i ++)
    {
        StopAudioStreamForPlayer(i);
        SendClientMessageToAll(COLOR_LIGHTBLUE, "An DJ has stopped playing the song");
    }
    return 1;
}
if(!strcmp(cmdtext, "/djhelp", true))
{
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "DJ COMMANDS:{FFFFFF}/playall /stopall");
    return 1;
}

if(!strcmp(cmdtext, "/audiostop", true))
{
    StopAudioStreamForPlayer(playerid);
    return 1;
}
Reply


Messages In This Thread
Convert to STRCMP PLease - by San1 - 24.06.2013, 06:07
Re: Convert to STRCMP PLease - by [ABK]Antonio - 24.06.2013, 07:05
Re: Convert to STRCMP PLease - by CountyRP - 24.06.2013, 08:14
Re: Convert to STRCMP PLease - by Vince - 24.06.2013, 10:34

Forum Jump:


Users browsing this thread: 1 Guest(s)