SA-MP Forums Archive
[FilterScript] Sistema De Radio Para Base - 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: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+----- Forum: Lançamentos/Releases (https://sampforum.blast.hk/forumdisplay.php?fid=56)
+----- Thread: [FilterScript] Sistema De Radio Para Base (/showthread.php?tid=471062)



Sistema De Radio Para Base - MeninaSedutora - 21.10.2013

Bom esse e meu 2 Post eu fiz um sistema bem simples para iniciantes (base)
Porque ainda estou trabalhando no meu gm para eu posta a 2 versгo imtaum galera e muito simples o sistema contem 10 radios diferente (compativel com todos os gm) mais e muito simples mesmo
Bom Eu fiz esse Fs pelo tutorial Do zSuYaNw
Bom tem os comandos /radio 1 -10
e /radiostop - Para Parar porem e so pra os iniciantes que nao saibam Criar um radio Depois vou faze uma em Diag pq eu tbm nao sou boa de pawn em Fim Ta ai o Pawn com 111 Linhas Bem pequeno


Code :
PHP код:
#define FILTERSCRIPT // Define que Este script й filterscript.
#include <a_samp>    // Utiliza a include principal, no caso a_samp, sem ela nгo vou poder fazer nada.
#if defined FILTERSCRIPT // Agora, este if significa Se, entгo SEFOR DEFINIDO FILTERSCRIPT, se estб definido como filterscript ele realizarб as funзхs abaixo.
// Agora veremos o comeзo do scrip.
public OnFilterScriptInit() // Esta public й quando inicia o filterscript
// Abre sempre a chave para comandos.
print("Comandos Basicos (Radios)"); // aqui vai as mensagens que vai aparecer no log.
return 1// Return 1; й return sim;
}// Fecha chave.
public OnFilterScriptExit()// Esta public й quando se desliga o filterscrip
{// abre
print("Comandos Basicos (Radios, desligado."); // Manda mensagem que o nosso filterscript foi desligado.
return 1// Return ? Sim
}// Fecha
public OnPlayerConnect(playerid)// Esta public й quando player conectar
{// Abre
return 1//  return ? sim
// Fecha
public OnPlayerDisconnect(playeridreason// Quando algum player disconecta
{// Abre
return 1;
}
// Fecha
public OnPlayerCommandText(playeridcmdtext[])// A parte dos comandos
{
////////////////////////////////////////////////////////////////////////////////
if (strcmp("/radio1"cmdtexttrue10) == 0)
{
PlayAudioStreamForPlayer(playerid"http://199.229.254.19:8236");
GameTextForPlayer(playerid"Radio Ligada"20001);
return 
1;
}
////////////////////////////////////////////////////////////////////////////////
if (strcmp("/radio2"cmdtexttrue10) == 0)
{
PlayAudioStreamForPlayer(playerid"http://74.222.1.151:8060");
GameTextForPlayer(playerid"Radio Ligada"20001);
return 
1;
}
////////////////////////////////////////////////////////////////////////////////
if (strcmp("/radio3"cmdtexttrue10) == 0)
{
PlayAudioStreamForPlayer(playerid"http://192.95.33.114:9996");
GameTextForPlayer(playerid"Radio Ligada"20001);
return 
1;
}
////////////////////////////////////////////////////////////////////////////////
if (strcmp("/radio4"cmdtexttrue10) == 0)
{
PlayAudioStreamForPlayer(playerid"http://72.55.174.236:8080/radiosu.mp3");
GameTextForPlayer(playerid"Radio Ligada"20001);
return 
1;
}
////////////////////////////////////////////////////////////////////////////////
if (strcmp("/radio5"cmdtexttrue10) == 0)
{
PlayAudioStreamForPlayer(playerid"hhttp://69.175.13.34:9928");
GameTextForPlayer(playerid"Radio Ligada"20001);
return 
1;
}
////////////////////////////////////////////////////////////////////////////////
if (strcmp("/radio6"cmdtexttrue10) == 0)
{
PlayAudioStreamForPlayer(playerid"http://198.178.123.11:7746");
GameTextForPlayer(playerid"Radio Ligada"20001);
return 
1;
}
////////////////////////////////////////////////////////////////////////////////
if (strcmp("/radio7"cmdtexttrue10) == 0)
{
PlayAudioStreamForPlayer(playerid"http://80.237.249.187:80");
GameTextForPlayer(playerid"Radio Ligada"20001);
return 
1;
}
////////////////////////////////////////////////////////////////////////////////
if (strcmp("/radio8"cmdtexttrue10) == 0)
{
PlayAudioStreamForPlayer(playerid"http://94.23.216.58:8800");
GameTextForPlayer(playerid"Radio Ligada"20001);
return 
1;
}
////////////////////////////////////////////////////////////////////////////////
if (strcmp("/radio9"cmdtexttrue10) == 0)
{
PlayAudioStreamForPlayer(playerid"http://95.141.24.40:80");
GameTextForPlayer(playerid"Radio Ligada"20001);
return 
1;
}
////////////////////////////////////////////////////////////////////////////////
if (strcmp("/radio10"cmdtexttrue10) == 0)
{
PlayAudioStreamForPlayer(playerid"http://198.100.145.144:9900");
GameTextForPlayer(playerid"Radio Ligada"20001);
return 
1;
}
////////////////////////////////////////////////////////////////////////////////
if (strcmp("/radiostop"cmdtexttrue10) == 0)
{
StopAudioStreamForPlayer(playerid); // Parar a Radio Online :D
GameTextForPlayer(playerid"Radio Desligada"20001);
return 
1;
}
////////////////////////////////////////////////////////////////////////////////
return 0// Return nгo.
}
#endif // para dizer que o script ta terminado. 
Creditos :
zSuYaNw - Pelo filterscript Pronto
Eu - Pela Radio Simples :P Espero que ajudem Vcs Novatos



Re: Sistema De Radio Para Base - SeV_ - 21.10.2013

Simples.. Como vocк disse. mais Intenзгo й boa.

Espero que evolua cada vez mais !


Re: Sistema De Radio Para Base - MeninaSedutora - 21.10.2013

Obrigada e porque sou nova em Pawn e esta um pouco dificil para min , aprende , comeзei a pouco tempo '-'
Vou tenta melhorar


Re: Sistema De Radio Para Base - [THs]ShadoW - 21.10.2013

Pera, pelo que eu entendi, a ъnica coisa que vocк trocou foi os Links, certo ?


Re: Sistema De Radio Para Base - MeninaSedutora - 21.10.2013

Код:
Pera, pelo que eu entendi, a ъnica coisa que vocк trocou foi os Links, certo ?
Sim , rsrs Os Links Foram Mais Dificil '-' Porque nao sou boa nisso '-' estou postando as coisas que eu aprendi e deu certo


Re: Sistema De Radio Para Base - Menor - 21.10.2013

Esse cara й fake do extremo, ate o modo de escrever й igual kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk


Re: Sistema De Radio Para Base - ThuuGLif3 - 21.10.2013

Extremo
Pra quer criar outra conta jovem?
@Edit:

http://www.******.com.br/imgres?imgu...hFmiMBDKo_Jlk=

/\ Clicae,


Re: Sistema De Radio Para Base - LucasF - 21.10.2013

Й a casa caiu^^


Re: Sistema De Radio Para Base - AlieN_. - 21.10.2013

creio que o.z caroline ґo suyan tbm kkkkkkkkkkkkkkkkk...mt mala ele...ele й um gato travessu rз


Respuesta: Sistema De Radio Para Base - DanDRT - 21.10.2013

Pra que criar fake?