Hey, I would like to make a plugin that gives an advertisement messages...
PHP Code:
like msgShown[33] = 0;
swtich(msgShown[id]){
case 0: client_print(id, print_chat, "ad number 1") msgShown[id]++;
case 1: client_print(id, print_chat, "ad number 2") msgShown[id]++;
case 2: client_print(id, print_chat, "ad number 3") msgShown[id]++;
case 3: client_print(id, print_chat, "ad number 4") msgShown[id]++;
}
But if user disconnects, the messages will be shown from start...
These 4 messages should be displayed in order within 1 map :]
Should it look like:
PHP Code:
new userid = get_user_userid(id);
client_print(userid, print_chat, "ad number 1") msgShown[userid]++;