20.11.2013, 11:03
Hello guy,
I have some problem with OnDialogResponse i cant make it and i asked a lot of people to help me with it but no one want to help so i hope today i find any one can help me to make OnDialogResponse for my cmd:ads
Ads Commands:
I have some problem with OnDialogResponse i cant make it and i asked a lot of people to help me with it but no one want to help so i hope today i find any one can help me to make OnDialogResponse for my cmd:ads
Ads Commands:
PHP код:
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;
}
But i lost OnDialogResponse and i cant make one for it :/
please help, because i closed my server for this reason.
please help, because i closed my server for this reason.