[AJUDA]Player Marker - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA]Player Marker (
/showthread.php?tid=228807)
[AJUDA]Player Marker -
=WoR=Bruno - 20.02.2011
Boas,eu fiz isto:
Код:
public OnPlayerSpawn(playerid)
{
SetPlayerColor(playerid, WHITE);
if(Player[playerid][Authenticated] == 1)
{
if(Player[playerid][Group] == 1)
{
if(Player[playerid][CopDuty] == 1)
{
SetPlayerColor(playerid, WHITE);
}
else
{
SetPlayerColor(playerid, BLUE);
}
}
if(Player[playerid][Group] == 4)
{
SetPlayerColor(playerid, RED);
}
if(Player[playerid][Group] == 6)
{
SetPlayerColor(playerid, PURPLE);
}
if(Player[playerid][Group] == 8)
{
SetPlayerColor(playerid, GREEN);
}
if(Player[playerid][Group] == 12)
{
SetPlayerColor(playerid, YELLOW);
}
if(Player[playerid][Group] == 7)
{
SetPlayerColor(playerid, AQUAGREEN);
}
}
Mas quando alguem morre a cor reseta para branco.Ainda nao consegui descobrir porque...Alguem pode dar uma dica?
Re: [AJUDA]Player Marker -
MaGnata_ - 20.02.2011
tire o SetPlayerColor(playerid, WHITE);
pawn Код:
public OnPlayerSpawn(playerid)
{
if(Player[playerid][Authenticated] == 1)
{
if(Player[playerid][Group] == 1)
{
if(Player[playerid][CopDuty] == 1)
{
SetPlayerColor(playerid, WHITE);
}
else
{
SetPlayerColor(playerid, BLUE);
}
}
if(Player[playerid][Group] == 4)
{
SetPlayerColor(playerid, RED);
}
if(Player[playerid][Group] == 6)
{
SetPlayerColor(playerid, PURPLE);
}
if(Player[playerid][Group] == 8)
{
SetPlayerColor(playerid, GREEN);
}
if(Player[playerid][Group] == 12)
{
SetPlayerColor(playerid, YELLOW);
}
if(Player[playerid][Group] == 7)
{
SetPlayerColor(playerid, AQUAGREEN);
}
}
Re: [AJUDA]Player Marker - rjjj - 20.02.2011
Isto deve resolver o seu problema
:
pawn Код:
if(IsPlayerConnected(playerid))
{
if(Player[playerid][Group] == 1)
{
if(Player[playerid][CopDuty] == 1)
{
SetPlayerColor(playerid, WHITE);
}
else
{
SetPlayerColor(playerid, BLUE);
}
}
if(Player[playerid][Group] == 4)
{
SetPlayerColor(playerid, RED);
}
if(Player[playerid][Group] == 6)
{
SetPlayerColor(playerid, PURPLE);
}
if(Player[playerid][Group] == 8)
{
SetPlayerColor(playerid, GREEN);
}
if(Player[playerid][Group] == 12)
{
SetPlayerColor(playerid, YELLOW);
}
if(Player[playerid][Group] == 7)
{
SetPlayerColor(playerid, AQUAGREEN);
}
}
Espero ter ajudado
Re: [AJUDA]Player Marker -
=WoR=Bruno - 20.02.2011
Consegui resolver,Mas obrigado na mesma pessoal.