[AJUDA]/duty
#1

Olб quando fasso /duty para entrar em serviзo de policia, mas o meu nome fica em branco queria ke kuando me metece em serviso ficasse azul, como fasso ?
Reply
#2

No comando coloque isso:

pawn Код:
SetPlayerColor(playerid,0x0000BBAA);
Reply
#3

Quote:

if(strcmp(cmd, "/duty", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255)
{
if(OnDuty[playerid]==0)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
format(string, sizeof(string), "* Oficial %s teve um distintivo e uma arma de seu armбrio.", sendername);
}
else if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
format(string, sizeof(string), "* Argente %s teve um distintivo e uma arma de seu armбrio.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 24, 70);
SafeGivePlayerWeapon(playerid, 3, 0);
SetPlayerArmour(playerid, 100);
OnDuty[playerid] = 1;
}
else if(OnDuty[playerid]==1)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
format(string, sizeof(string), "* Oficial %s coloca seu distintivo e arma no seu armбrio.", sendername);
}
else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
format(string, sizeof(string), "* Argente %s coloca seu distintivo e arma no seu armбrio.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SafeResetPlayerWeapons(playerid);
SetPlayerArmour(playerid, 0);
SafeGivePlayerWeapon(playerid, 41, 500);
OnDuty[playerid] = 0;
}
}
else
{


A onde
Reply
#4

pawn Код:
if(strcmp(cmd, "/duty", true) == 0)
  {
    if(IsPlayerConnected(playerid))
    {
     GetPlayerName(playerid, sendername, sizeof(sendername));
     if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
     {
      if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255)
      {
        if(OnDuty[playerid]==0)
         {
           if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
           {
           format(string, sizeof(string), "* Oficial %s teve um distintivo e uma arma de seu armбrio.", sendername);
         }
         else if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
           {
           format(string, sizeof(string), "* Argente %s teve um distintivo e uma arma de seu armбrio.", sendername);
         }
         ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
         SafeGivePlayerWeapon(playerid, 24, 70);
         SafeGivePlayerWeapon(playerid, 3, 0);
         SetPlayerArmour(playerid, 100);
         SetPlayerColor(playerid,0x0000BBAA);
         OnDuty[playerid] = 1;
        }
        else if(OnDuty[playerid]==1)
        {
          if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
          {
           format(string, sizeof(string), "* Oficial %s coloca seu distintivo e arma no seu armбrio.", sendername);
         }
         else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
         {
           format(string, sizeof(string), "* Argente %s coloca seu distintivo e arma no seu armбrio.", sendername);
         }
         ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
         SafeResetPlayerWeapons(playerid);
         SetPlayerArmour(playerid, 0);
         SetPlayerColor(playerid,0x0000BBAA);
         SafeGivePlayerWeapon(playerid, 41, 500);
         OnDuty[playerid] = 0;
        }
      }
      else
      {
Reply
#5

obrigado
Reply
#6

funcionou?
Reply
#7

sim
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)