04.09.2010, 20:57
Alguem tem ai um codigo pra os admins ver os players no radar?
public OnPlayerUpdate(playerid)
{
if(IsPlayerAdmin(playerid))
{
ShowPlayerMarkers(true);
}
else
{
ShowPlayerMarkers(2);
}
return 1;
}
#define ShowPlayerMarkerForAdmin(); \
for(new i=0;i<MAX_PLAYERS;i++){for(new p=0;p<MAX_PLAYERS;p++){\
if(IsPlayerConnected(i) && IsPlayerConnected(p))\
if(IsPlayerAdmin(i)) SetPlayerMarkerForPlayer(i,p, GetPlayerColor(p));}}
public OnPlayerUpdate(playerid)
{
ShowPlayerMarkerForAdmin();
return 1;
}
@KevinSL:
pawn Код:
A Funзгo ShowPlayerMarkers й global para todos um players,deve-se usar SetPlayerMarkerForPlayer |
public OnPlayerUpdate(playerid)
{
ShowPlayerMarkerForAdmin(playerid);
return 1;
}
ShowPlayerMarkerForAdmin(playerid)
{
if(IsPlayerAdmin(playerid)) for(new p=0;p<=MAX_PLAYERS;p++) if(IsPlayerConnected(p))
{
SetPlayerMarkerForPlayer(playerid,p, GetPlayerColor(p));
}
return true;
}
public OnPlayerUpdate(playerid)
{
if(IsPlayerAdmin(playerid))
{
ShowPlayerMarkerForAdmin(playerid);
}
else
{
ShowPlayerMarkers(2);
}
return 1;
}
@KevinSL
rsrs Fiz muita Gabiarra pawn Код:
|