16.09.2010, 00:11
Ei galera,eu queria fazer um filterscript de quando o player entrar,aparecer para todos os players exemplo : ''fulando entrou no servidor'' . Mais eu nгo estou conseguindo fazer o Filterscript alguem pode me ajudar ?! Valew 
Ta ai o codigo

Ta ai o codigo
Код HTML:
#include <a_samp>
new RandomColors [] =
{
0xFF5A00FF,
0xF50000FF,
0xF50000FF,
0x91FF00FF,
0xFF0091FF,
0x009000FF,
0x9600FFFF
};
public OnPlayerConnect(playerid)
{
new string[128];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"%s entrou no servidor!",pName);
SendClientMessageToAll(RandomColors,string);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new PlayerName[MAX_PLAYER_NAME];
new string[56];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
switch(reason)
{
case 0: format(string, sizeof(string), "%s saiu do servidor. (Problema de conexгo)", PlayerName);
case 1: format(string, sizeof(string), "%s saiu do servidor. (Conta prуpria)", PlayerName);
case 2: format(string, sizeof(string), "%s saiu do servidor. (Kickado/Banido)", PlayerName);
}
SendClientMessageToAll(RandomColors,string);
return 1;
}