[Tool/Web/Other] [Aporte] ClearChatbox 'Limpiar Chat' - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+----- Forum: Lanzamientos/Releases (
https://sampforum.blast.hk/forumdisplay.php?fid=59)
+----- Thread: [Tool/Web/Other] [Aporte] ClearChatbox 'Limpiar Chat' (
/showthread.php?tid=335142)
[Tutorial] ClearChatbox 'Limpiar Chat' -
OTACON - 17.04.2012
[Aporte] ClearChatbox 'Limpiar Chat'
'APORTE PARA LOS USUARIOS NOVATOS EN PAWNO'
[*] Script:
- Coloca La siguiente funcion Al Final Del GM/FS
Код:
stock ClearChatboxToAll(playerid, lines) //Para Todos los Jugadore
{
if (IsPlayerConnected(playerid))
{
for(new i=0; i<lines; i++)
{
SendClientMessageToAll( -1, " ");
}
}
return 1;
}
Код:
stock ClearChatbox(playerid, lines) //Para El Player Solo
{
if (IsPlayerConnected(playerid))
{
for(new i=0; i<lines; i++)
{
SendClientMessage(playerid, -1, " ");
}
}
return 1;
}
[*] Modo de Uso:
- Coloca La siguiente funcion En donde Usted Desee Limpiar el Chat.
Код:
ClearChatbox(playerid, 10); //Cambia 10 Por la Cantidad de SendClientMessage Que Desea Crear.
Код:
ClearChatboxToAll(playerid, 10); //Cambia 10 Por la Cantidad de SendClientMessage Que Desea Crear.
[*] Ejemplo 1:
Код:
if(!strcmp(cmdtext, "/Limpiar", true))
{
ClearChatboxToAll(playerid, 100);
return 1;
}
[*] Ejemplo 2:
Код:
public OnPlayerConnect(playerid)
{
ClearChatboxToAll(playerid, 100);
return 1;
}
[*] Creditos:
- Otacon, Wiki, [J]ulian
Respuesta: [Aporte] ClearChatbox 'Limpiar Chat' -
Soi_salva - 17.04.2012
Esto no ceria con [Tutoriales]?