- Código:
[size=13]public OnFilterScriptInit()[/size]
[size=14][size=13]{
timer = SetTimer("Ktimer",100,true);
return 1;
}
public OnFilterScriptExit()
{
KillTimer(timer);
return 1;
}
forward Ktimer();
public Ktimer()
{
for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
{
if(IsPlayerConnected(playerid))
{
new keys,leftright,updown;
GetPlayerKeys(playerid,keys,updown,leftright);
new msg[128]; format(msg,sizeof(msg),"Analogico: %i,%i | Teclas: %i",updown,leftright,keys);
ClearChatBox(playerid);
SendClientMessage(playerid,0xFFCCCCFF,msg);
}
}
}
stock ClearChatBox(playerid)
{
new i=30; while(i>0){
SendClientMessage(playerid,0xCCCCCCCC," ");
i--;}
}[/size][/size]
Creditos: IPSBruno