Posts: 35
Threads: 12
Joined: May 2008
Reputation:
0
Boas.
Estive ver na wiki e tem lб "ShowPlayerMarkers" sу que vai mostrar de todos os players, e eu queria sу os admins quando estгo em duty.
Alguйm sabe como meter isso?
Cumprimentos.
Posts: 649
Threads: 4
Joined: Jul 2010
pawn Код:
stock SetPlayerMarkerForAdmin()
{
for(new i; i < 0xFA*4; ++i)
{
if(IsPlayerConnected(i))
{
if(IsPlayerAdmin(i))
{
SetPlayerMarkerForPlayer(i, 1, 0xFFFFFF);
}
}
}
return 1;
}
Posts: 649
Threads: 4
Joined: Jul 2010
Quote:
Originally Posted by Ricop522
PHP код:
stock SetPlayerMarkerForAdmin()
{
for(new i; i < 0xFA*4; ++i)
{
if(IsPlayerConnected(i))
{
if(IsPlayerAdmin(i))
{
SetPlayerMarkerForPlayer(i, 1, 0xFFFFFFAA);
}
}
}
return 1;
}
Faltou o AA no final, hm
|
na verdade nгo.
isso sу й a forзa/transparкncia/opacidade da cor ...
Posts: 35
Threads: 12
Joined: May 2008
Reputation:
0
Mas nгo trabalha, nгo aparece no mini map.
Posts: 649
Threads: 4
Joined: Jul 2010
Quote:
Originally Posted by Dr_Pawno
Oque й 0xFA*4?
|
ops', errei !.
FA = 250 * 4 = 1k
pawn Код:
stock SetPlayerMarkerForAdmin()
{
for(new i; i < 0xFA*2; ++i)
{
if(IsPlayerConnected(i))
{
if(IsPlayerAdmin(i))
{
SetPlayerMarkerForPlayer(i, 1, 0xFFFFFF);
}
}
}
return 1;
}
Posts: 35
Threads: 12
Joined: May 2008
Reputation:
0
Nгo aparece no mini-map a mark.