25.03.2010, 05:59
pawn Код:
//Ontop
new news;
new newstimer;
//onplayerconnect
news[playerid] = 1;
//underonplayercommand
if(strcmp,cmdtext, "/news",...)
{
news[playerid] = 0
SetTimer("newstimer",20000,1);
//other stuff
return 1;
}
public newstimer(playerid)
{
news[playerid] = 1;
// you can add other stuff here like SendClientMessage etc.
return 1;
}