PHP Code:
new bool:msg[33];
//or bitsum..
new const message[] = "bla...";
public plugin_init() {
set_task(1.0, "MsgApp", 0, _, 0, "b");
register_clcmd("say /info", "clcmd_msg");
}
public MsgApp() {
static players[32],iNum,player;
get_players(players, iNum, "ch");
for(new i;i<iNum;i++) {
player = players[i];
if( msg[player] ) {
set_dhudmessage(50,150,250, -1.0, -1.0, 1, 1.0, 1.1, 0.1, 0.1, true);
show_dhudmessage(player, message);
}
}
}
public clcmd_msg(id){
msg[id] = msg[id] ? false : true;
return PLUGIN_CONTINUE; // or handled if you want..
}
You want the message to remain permanently on hud or for 10,15 sec..?
Quote:
|
And is it possible to save what he choose by steam_id (to remember on reconnect or next map)?
|
It's possible with nvault, but i think is bad idea to save this...