22.08.2015, 16:13
(
Последний раз редактировалось DerickClark; 22.08.2015 в 16:59.
)
- Fixed.
if(Team[playerid] == TEAM_COP)
{
for(new p = GetPlayerPoolSize(); p >= 0; --p) {
if(GetPlayerWantedLevel(p) >= 1) {
SetPlayerMarkerForPlayer(p, playerid, 0xFF0000FF);
} else if(GetPlayerWantedLevel(p) == 0) {
SetPlayerMarkerForPlayer(p, playerid, COLOUR_RED); // This is default color! Removed you team color
}
}
}
if(Team[playerid] == TEAM_COP) { for(new p = GetPlayerPoolSize(); p >= 0; --p) { if(GetPlayerWantedLevel(p) >= 1) { SetPlayerColor(playerid,COLOUR_RED); SetPlayerMarkerForPlayer(p, playerid, 0xFF0000FF); } else if(GetPlayerWantedLevel(p) == 0) { SetPlayerMarkerForPlayer(p, playerid, COLOUR_RED); // This is default color! Removed you team color SetPlayerMarkerForPlayer(p, playerid, COLOUR_RED); SetPlayerToTeamColour(playerid); } } }
I mean when i type /duty it will show the wanted color. when i type /duty again it won't show the wanted players.
|
if(Team[playerid] == TEAM_COP)
{
for(new p = GetPlayerPoolSize(); p >= 0; --p) {
if(GetPlayerWantedLevel(p) >= 1 && PoliceDuty[playerid]) { // If is Add it work?
SetPlayerMarkerForPlayer(p, playerid, 0xFF0000FF);
} else if(GetPlayerWantedLevel(p) == 0) {
SetPlayerMarkerForPlayer(p, playerid, COLOUR_RED); // This is default color! Removed you team color
}
}
}
SetPlayerToTeamColour
if(Team[playerid] == TEAM_COP) { for(new p = GetPlayerPoolSize(); p >= 0; --p) { if(GetPlayerWantedLevel(p) >= 1 && PoliceDuty[playerid]) { // If is Add it work? SetPlayerColor(playerid,COLOUR_RED); SetPlayerMarkerForPlayer(p, playerid, 0xFF0000FF); } else if(GetPlayerWantedLevel(p) == 0) { SetPlayerMarkerForPlayer(p, playerid, COLOUR_RED); SetPlayerToTeamColour(p); } } }
It's working but when i type /duty 2 times. i'm off duty but the color not resting to
Код:
SetPlayerToTeamColour Код:
if(Team[playerid] == TEAM_COP) { for(new p = GetPlayerPoolSize(); p >= 0; --p) { if(GetPlayerWantedLevel(p) >= 1 && PoliceDuty[playerid]) { // If is Add it work? SetPlayerColor(playerid,COLOUR_RED); SetPlayerMarkerForPlayer(p, playerid, 0xFF0000FF); } else if(GetPlayerWantedLevel(p) == 0) { SetPlayerMarkerForPlayer(p, playerid, COLOUR_RED); SetPlayerToTeamColour(p); } } } |
if(Team[playerid] == TEAM_COP)
{
for(new p = GetPlayerPoolSize(); p >= 0; --p) {
if(GetPlayerWantedLevel(p) >= 1 && PoliceDuty[playerid])
{ // If is Add it work?
SetPlayerColor(playerid,COLOUR_RED);
SetPlayerMarkerForPlayer(p, playerid, 0xFF0000FF);
}
else if(GetPlayerWantedLevel(p) == 0 || !PoliceDuty[playerid] ) // Teste it
{
SetPlayerMarkerForPlayer(p, playerid, COLOUR_RED); // This is default color! Removed you team color
SetPlayerToTeamColour(p);
}
}
}
PHP код:
|
if(Team[playerid] == TEAM_COP) { for(new p = GetPlayerPoolSize(); p >= 0; --p) { if(GetPlayerWantedLevel(p) >= 1 && PoliceDuty[playerid]) { // If is Add it work? SetPlayerMarkerForPlayer(p, playerid, 0xFF0000FF); } else if(GetPlayerWantedLevel(p) == 0) { SetPlayerMarkerForPlayer(p, playerid, COLOUR_RED); // This is default color! Removed you team color } } }