Ryso 0 Odesláno: 6. Červen, 2010 Share Odesláno: 6. Červen, 2010 Chcem vo svojom mode spravit (2 teamy), ze sa superi navzajom nevidia na radare; na radare vidis len svojich spoluhracov ShowNameTags(0); ShowPlayerMarkers(0); forward SetPlayerNametagsMarkers(playerid); public SetPlayerNametagsMarkers(playerid) { if(Hrac[playerid][gTeam] == TEAM_GREEN) { for(new i=0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(Hrac[i][gTeam] == TEAM_GREEN) { ShowPlayerNameTagForPlayer(i, playerid, true); SetPlayerMarkerForPlayer(i, playerid, TEAM_GREEN_COLOR); ShowPlayerNameTagForPlayer(playerid, i, true); SetPlayerMarkerForPlayer(playerid, i, TEAM_GREEN_COLOR); } else if(Hrac[i][gTeam] == TEAM_BLUE) { ShowPlayerNameTagForPlayer(i, playerid, false); SetPlayerMarkerForPlayer(i, playerid, TEAM_BLUE_COLOR); ShowPlayerNameTagForPlayer(playerid, i, false); SetPlayerMarkerForPlayer(playerid, i, TEAM_BLUE_COLOR); } } } } else if(Hrac[playerid][gTeam] == TEAM_BLUE) { for(new i=0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(Hrac[i][gTeam] == TEAM_GREEN) { ShowPlayerNameTagForPlayer(i, playerid, false); SetPlayerMarkerForPlayer(i, playerid, TEAM_GREEN_COLOR); ShowPlayerNameTagForPlayer(playerid, i, false); SetPlayerMarkerForPlayer(playerid, i, TEAM_GREEN_COLOR); } else if(Hrac[i][gTeam] == TEAM_BLUE) { ShowPlayerNameTagForPlayer(i, playerid, true); SetPlayerMarkerForPlayer(i, playerid, TEAM_BLUE_COLOR); ShowPlayerNameTagForPlayer(playerid, i, true); SetPlayerMarkerForPlayer(playerid, i, TEAM_BLUE_COLOR); } } } } return 1; } Lenze to nefici Link to comment Share on other sites More sharing options...
0 Guest Frodo Odesláno: 6. Červen, 2010 Share Odesláno: 6. Červen, 2010 http://pawno.cz/viewtopic.php?f=8&t=8151&p=87290&hilit=Neviditelnost#p87290 Priste pouzivej hledani Link to comment Share on other sites More sharing options...
Dotaz
Ryso 0
Chcem vo svojom mode spravit (2 teamy), ze sa superi navzajom nevidia na radare; na radare vidis len svojich spoluhracov
Lenze to nefici
Link to comment
Share on other sites
1 odpověd na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now