[Ajuda] ajuda - 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)
+---- Thread: [Ajuda] ajuda (
/showthread.php?tid=459795)
ajuda -
Samuel300 - 24.08.2013
queira saber como q eu faзo para tipo ... quando um socio entrar no servidor aparece-se a mensagem ...
Sуcio Samuel_Oss On , mas eu queria q amostra-se a mensagem sу quando ele loga-se e nao quando fica-se of ...
Obs: O sуcio й o vip nv 3 ...
Re: ajuda -
Juniiro3 - 24.08.2013
PHP код:
public OnPlayerConnect ( playerid )
{
if ( PlayerInfo [ playerid ] [ pSocio ] > 0 ) //Aqui voce muda para a sua variavel de Socio
{
new Texo [ 100 ] ;
format ( Texto , 100 , "~w~Socio:\n%s ~g~on" , Nome ( playerid ) ) ;
GameTextForAll ( Texto , 2000 , 2 ) ;
}
}
stock Nome ( playerid )
{
new Name [ 24 ] ;
GetPlayerName ( playerid , Nome , 24 ) ;
return Name;
}
Re: ajuda -
xxRaioxx - 24.08.2013
Em OnPlayerConnect:
pawn Код:
if(pAdmin[playerid][Level] == 2)
{
new txt[200], namesocio[MAX_PLAYER_NAME];
GetPlayerName(playerid, namesocio, sizeof(namesocio));
format(txt, sizeof(txt), " ~w~O socio\n%s ~r~ Entrou ", namesocio);
GameTextForAll(txt, 5000, 5);
}
}
/* Em if(pAdmin[playerid][Level] == 2) coloque suas variбveis */