[Ajuda] TAG - 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] TAG (
/showthread.php?tid=426612)
TAG -
Gleisson_. - 29.03.2013
Sу os players com a tag [Teste] Poderiam abrir o portao
Eu deveria fazer como ?
PHP код:
if (GetPlayerName(playerid, [Teste])
{
//
return 1;
}
Assim nao da !!, da uma forзa ae glr
Re: TAG -
Supera - 29.03.2013
pawn Код:
new Nome[24];
GetPlayerName(playerid, Nome, 24);
if(strfind(Nome, "[Teste]", true) != -1)
{
// ...
}
Re: TAG -
Sky™ - 29.03.2013
pawn Код:
if(strfind(GetName(playerid), "[teste]", true) == 0){
//funзгo
}
fassa uma funзгo para n ter que ficar getando o nome do player como fiz
pawn Код:
stock GetName(playerid)
{
new
_PlayerName[MAX_PLAYER_NAME]
;
GetPlayerName(playerid, _PlayerName, MAX_PLAYER_NAME);
return _PlayerName;
}
Re: TAG -
Gleisson_. - 29.03.2013
Quote:
Originally Posted by Supera
pawn Код:
new Nome[24]; GetPlayerName(playerid, Nome, 24); if(strfind(Nome, "[Teste]", true) != -1) { // ... }
|
Mais isso funcionaria, exemplo:
[Teste]Fulano
e
Fulano
Sу o Fulano com a TAG [Teste] conseguiria realizar o comando ?
Re: TAG -
Supera - 29.03.2013
Todos os nicks com a Tag [Teste] iriam conseguir realizar o comando
Re: TAG -
Gleisson_. - 29.03.2013
Quote:
Originally Posted by Supera
Todos os nicks com a Tag [Teste] iriam conseguir realizar o comando
|
+REP.