19.11.2013, 21:09 
	
	
	Hello guys i tried to make new advertisement CMD for my Script But there're some cmds lost i can't do any thing else any one can help me and continue it,   because when i wrote /ads Dialog appear but when i press on any choice nothing appear so please Am really need some help, and it will be helpful for all Roleplay server 

PHP код:
CMD:ad(playerid, params[])
{
    SendClientMessageEx(playerid, COLOR_WHITE, "The /ad command has been removed - use /ads or /advertisements.");
    return 1;
}
CMD:ads(playerid, params[]) {
    return cmd_advertisements(playerid, params);
}
CMD:advertisements(playerid, params[]) {
    if(gPlayerLogged{playerid} == 0) {
        SendClientMessageEx(playerid, COLOR_GREY, "You're not logged in.");
    }
    else if(GetPVarType(playerid, "Injured")) {
        SendClientMessageEx(playerid, COLOR_GREY, "You can't use advertisements while injured.");
    }
    else if(PlayerCuffed[playerid] != 0) {
        SendClientMessageEx(playerid, COLOR_GREY, "You can't use advertisements right now.");
    }
    else if(PlayerInfo[playerid][pJailTime] > 0) {
        SendClientMessageEx(playerid, COLOR_GREY, "You can't use advertisements while in jail.");
    }
    else ShowPlayerDialog(playerid, DIALOG_ADMAIN, DIALOG_STYLE_LIST, "Advertisements", "List Advertisements\nSearch Advertisements\nPlace Advertisement\nPlace Priority Advertisement", "Select", "Cancel");
 return 1;
} 



