24.06.2010, 20:17
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys & KEY_FIRE)
{
for(new a = 0, b = GetMaxPlayers(); a < b; a++)
{
SetPlayerMarkerForPlayer(playerid, a, GetPlayerColor(playerid));
SetTimerEx("HideIcon",2000,0,"i",playerid);
}
return 1;
}
return 1;
}
forward HideIcon(playerid);
public HideIcon(playerid)
{
for(new a = 0, b = GetMaxPlayers(); a < b; a++)
{
SetPlayerMarkerForPlayer(playerid, a, 00);
}
return 1;
}