Attack-Defend (A/D Invisible players in mini map in arenas
#1

Invisible players in arenas


do not look at minimap




I like to look on the map?




and edited this but nothing happens
Код:
public OnPlayerStreamIn(playerid, forplayerid)
{
	if(Player[playerid][Team] == ATTACKER_SUB || Player[playerid][Team] == DEFENDER_SUB) {
	    SetPlayerMarkerForPlayer(forplayerid,playerid,GetPlayerColor(playerid) & 0xFFFFFF00);
	    return 1;
	}


	if(Player[playerid][Playing] == true && Player[forplayerid][Playing] == true){
		if(Player[forplayerid][Team] != Player[playerid][Team]){
			SetPlayerMarkerForPlayer(forplayerid,playerid,GetPlayerColor(playerid) & 0xFFFFFF00);
		} else {
			switch(Player[playerid][Team]) {
			    case ATTACKER: {
					if(Player[playerid][AskingForHelp] == true) SetPlayerMarkerForPlayer(forplayerid,playerid,ATTACKER_ASKING_HELP | 0x00000055);
					else SetPlayerMarkerForPlayer(forplayerid,playerid,GetPlayerColor(playerid) | 0x00000055);
				} case DEFENDER: {
					if(Player[playerid][AskingForHelp] == true) SetPlayerMarkerForPlayer(forplayerid,playerid,DEFENDER_ASKING_HELP | 0x00000055);
					else SetPlayerMarkerForPlayer(forplayerid,playerid,GetPlayerColor(playerid) | 0x00000055);
				}
			}
		}
	} else if(Player[playerid][Playing] == true && Player[forplayerid][Playing] == false) {
		if(Player[forplayerid][Team] != Player[playerid][Team]){
			SetPlayerMarkerForPlayer(forplayerid,playerid,GetPlayerColor(playerid) & 0xFFFFFF00);
		} else {
			switch(Player[playerid][Team]) {
			    case ATTACKER: {
					if(Player[playerid][AskingForHelp] == true) SetPlayerMarkerForPlayer(forplayerid,playerid,ATTACKER_ASKING_HELP | 0x00000055);
					else SetPlayerMarkerForPlayer(forplayerid,playerid,GetPlayerColor(playerid) | 0x00000055);
				} case DEFENDER: {
					if(Player[playerid][AskingForHelp] == true) SetPlayerMarkerForPlayer(forplayerid,playerid,DEFENDER_ASKING_HELP | 0x00000055);
					else SetPlayerMarkerForPlayer(forplayerid,playerid,GetPlayerColor(playerid) | 0x00000055);
				}
			}
		}
	}

	return 1;
}
and

Код:
stock RadarFix() {
    foreach(new i : Player) {
		foreach(new x : Player) {
			if(Player[i][Team] == ATTACKER_SUB || Player[i][Team] == DEFENDER_SUB) {
			    SetPlayerMarkerForPlayer(x,i,GetPlayerColor(i) & 0xFFFFFF00);
			    return 1;
			}

		    if(Player[i][Playing] == true && Player[x][Playing] == true) {
				if(Player[x][Team] != Player[i][Team]) {
					SetPlayerMarkerForPlayer(x,i,GetPlayerColor(i) & 0xFFFFFF00);
	            } else {
					switch(Player[i][Team]) {
					    case ATTACKER: {
							if(Player[i][AskingForHelp] == true) SetPlayerMarkerForPlayer(x,i,ATTACKER_ASKING_HELP | 0x00000055);
							else SetPlayerMarkerForPlayer(x,i,GetPlayerColor(i) | 0x00000055);
						} case DEFENDER: {
							if(Player[i][AskingForHelp] == true) SetPlayerMarkerForPlayer(x,i,DEFENDER_ASKING_HELP | 0x00000055);
							else SetPlayerMarkerForPlayer(x,i,GetPlayerColor(i) | 0x00000055);
						}
					}
				}
			} else if(Player[i][Playing] == true && Player[x][Playing] == false) {
				if(Player[x][Team] != Player[i][Team]) {
					SetPlayerMarkerForPlayer(x,i,GetPlayerColor(i) & 0xFFFFFF00);
	            } else {
					switch(Player[i][Team]) {
					    case ATTACKER: {
							if(Player[i][AskingForHelp] == true) SetPlayerMarkerForPlayer(x,i,ATTACKER_ASKING_HELP | 0x00000055);
							else SetPlayerMarkerForPlayer(x,i,GetPlayerColor(i) | 0x00000055);
						} case DEFENDER: {
							if(Player[i][AskingForHelp] == true) SetPlayerMarkerForPlayer(x,i,DEFENDER_ASKING_HELP | 0x00000055);
							else SetPlayerMarkerForPlayer(x,i,GetPlayerColor(i) | 0x00000055);
						}
					}
				}
			}
		}
    }
    return 1;
}
0x00000055
0xFFFFFF00
0x00000055
this is the original code and it changed to another color and nothing happens
Reply
#2

Solved

Код:
SetPlayerMarkerForPlayer( 42, 1, 0xFF0000FF );
https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)