SA-MP Forums Archive
[FilterScript] Patente System - 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] Patente System (/showthread.php?tid=587397)



Patente System - iTakelot - 30.08.2015

Patente System


Bom galera venho trazer para vocкs um simples sistema de patente por score ele possui uma textdraw no canto da tela que indica a patente do player e tambйm uma label em cima da cabeзa com sua patente.



Imagens






Creditos

SAMP-TEAM Pela criaзгo da include a_samp♦

Zeex Pela criaзгo da include Z_CMD♦

[T]akelot Pela criaзгo do filterscript♦



Dawnload



Re: Patente System - Cleyson - 30.08.2015

Bacana, mais irei te dar duas dicas de otimizaзгo

Usar switch ao invйs de else if...

mesmo que nгo esteja usando, mais uma boa dica na hora de pegar o nome do player, pra nгo precisar pegar o nome toda hora, pegue somente uma vez, quando se conectar exemplo:

PHP код:
new pNome[MAX_PLAYERS][24];
public 
OnPlayerConnect(playerid)
{
    
GetPlayerName(playeridpNome[playerid], 24);
    return 
1;
}
CMD:meunome(playerid)
{
    new 
mensagem[50];
    
format(mensagem50"Meu nome й: %s"pNome[playerid]);
    
SendClienteMessage(playerid, -1mensagem);
    return 
1;

Ah e reveja essa aritmйtica < > parece um pouco confusa..


Re: Patente System - iTakelot - 31.08.2015

vlw Cleyssom Realmente nгo sabia desta maneira de pegar o nick do player


Re: Patente System - JPedro - 02.09.2015

Nгo seria melhor usar o DIALOG_STYLE_MSGBOX ao invez de DIALOG_STYLE_LIST ?