12.11.2013, 18:43
Hi,
When i use cmd:ads there're menu opened like Next Generation Gaming Server but when i choose any thing from the menu, nothing happen i don't know why?
There're codes
When i use cmd:ads there're menu opened like Next Generation Gaming Server but when i choose any thing from the menu, nothing happen i don't know why?
There're codes
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;
}