[FilterScript] SISTEMA DE COR PARA O NICK
#1

SISTEMA COR PARA O NICK | SAMP SERVER

Eae galera beleza? bom,acabei criar meu primeiro FS,sou muito novato em Pawno entгo peguem leve,kkk
DOWNLOAD PASTEBIN:
http://pastebin.com/NrKAfzVJ
DOWNLOAD:
PHP Code:
/*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-|SISTEMA DE COR DO NICK|-=-=-=-=-=-=-=-=-=-=-=-==-=-=
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-|By: CloneZPlays|-=-=-=-=-=-=-=-=-=-=-=-==-=-==-==-=
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
#include <a_samp>
#define FILTERSCRIPT
//Cores
#define COLOR_YELLOW 0xFFFF00FF
#if defined FILTERSCRIPT
new string[256];
public 
OnFilterScriptInit()
{
        print(
"=====================================");
        print(
"=========-=BY: CloneZPlays=-=========");
        print(
"=====================================");
        return 
1;
}
public 
OnFilterScriptExit()
{
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
return 
1;
}
//Comandos
public OnPlayerCommandText(playeridcmdtext[])
{
if (
strcmp("/cores"cmdtexttrue10) == 0)
{
new 
Creditos[200];// <<< Ta Crйditos pq й do meu GM o dialog,mais nгo muda em nada
strins(Creditos,"{FF0000}/VERMELHO    {0000FF}/AZUL    {00FF00}/VERDE    {FFFF00}/AMARELO    {000000}/PRETO    {FFFFFF}/BRANCO    {FF1493}/ROSA\n",strlen(Creditos));
ShowPlayerDialog(playerid,224DIALOG_STYLE_MSGBOX"{00FF00}CORES BY: {FFFFFF}CloneZPlays",Creditos"OK""");
return 
1;
}
if (
strcmp(cmdtext"/azul"true)==0)
{
SetPlayerColor(playerid0x0000FFFF);
new 
pname[MAX_PLAYER_NAME];
GetPlayerName(playeridpnameMAX_PLAYER_NAME);
format(stringsizeof(string), "%s {FFFFFF}Mudou a Cor do seu Nick para {0000FF}/AZUL {FFFF00}Mude vocк tambйm! {9370DB}[/CORES]"pname);
SendClientMessageToAll(COLOR_YELLOWstring);
return 
1;
}
if (
strcmp(cmdtext"/vermelho"true)==0)
{
SetPlayerColor(playerid0xFF0000FF);
new 
pname[MAX_PLAYER_NAME];
GetPlayerName(playeridpnameMAX_PLAYER_NAME);
format(stringsizeof(string), "%s {FFFFFF}Mudou a Cor do seu Nick para {FF0000}/VERMELHO {FFFF00}Mude vocк tambйm! {9370DB}[/CORES]"pname);
SendClientMessageToAll(COLOR_YELLOWstring);
return 
1;
}
if (
strcmp(cmdtext"/verde"true)==0)
{
SetPlayerColor(playerid0x00FF00FF);
new 
pname[MAX_PLAYER_NAME];
GetPlayerName(playeridpnameMAX_PLAYER_NAME);
format(stringsizeof(string), "%s {FFFFFF}Mudou a Cor do seu Nick para {00FF00}/VERDE {FFFF00}Mude vocк tambйm! {9370DB}[/CORES]"pname);
SendClientMessageToAll(COLOR_YELLOWstring);
return 
1;
}
if (
strcmp(cmdtext"/amarelo"true)==0)
{
SetPlayerColor(playerid0xFFFF00FF);
new 
pname[MAX_PLAYER_NAME];
GetPlayerName(playeridpnameMAX_PLAYER_NAME);
format(stringsizeof(string), "%s {FFFFFF}Mudou a Cor do seu Nick para {FFFF00}/AMARELO {FFFF00}Mude vocк tambйm! {9370DB}[/CORES]"pname);
SendClientMessageToAll(COLOR_YELLOWstring);
return 
1;
}
if (
strcmp(cmdtext"/branco"true)==0)
{
SetPlayerColor(playerid0xFFFFFFFF);
new 
pname[MAX_PLAYER_NAME];
GetPlayerName(playeridpnameMAX_PLAYER_NAME);
format(stringsizeof(string), "%s {FFFFFF}Mudou a Cor do seu Nick para {FFFFFF}/BRANCO {FFFF00}Mude vocк tambйm! {9370DB}[/CORES]"pname);
SendClientMessageToAll(COLOR_YELLOWstring);
return 
1;
}
if (
strcmp(cmdtext"/preto"true)==0)
{
SetPlayerColor(playerid0x000000FF);
new 
pname[MAX_PLAYER_NAME];
GetPlayerName(playeridpnameMAX_PLAYER_NAME);
format(stringsizeof(string), "%s {FFFFFF}Mudou a Cor do seu Nick para {000000}/PRETO {FFFF00}Mude vocк tambйm! {9370DB}[/CORES]"pname);
SendClientMessageToAll(COLOR_YELLOWstring);
return 
1;
}
if (
strcmp(cmdtext"/rosa"true)==0)
{
SetPlayerColor(playerid0xFF1493FF);
new 
pname[MAX_PLAYER_NAME];
GetPlayerName(playeridpnameMAX_PLAYER_NAME);
format(stringsizeof(string), "%s {FFFFFF}Mudou a Cor do seu Nick para {FF1493}/ROSA {FFFF00}Mude vocк tambйm! {9370DB}[/CORES]"pname);
SendClientMessageToAll(COLOR_YELLOWstring);
return 
1;
}
//==============================================================================
return 0;
}
//==============================================================================
#endif 
[DETALHE] Antes eu tinha colocado colocado new string[256]; em cada comando mais eu coloquei como variбvel
pq й mais fбcil.
Ahh... tem poucas cores,se vc quiser pode adicionar mais.
*Digite /CORES para ver todas as cores.
*Cores Disponiveis: /Vermelho,/Azul,/Verde,/Preto,/Branco e /Rosa.

[OBS] Estou desenvolvendo a versгo 2.0 com muito mais cores.
Reply
#2

Nesta abra tуpico em inglкs.
Бrea em portuguкs aqui.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)