SA-MP Forums Archive
[Ajuda] /celuaron /celularoff , Valendo REP ! - 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] /celuaron /celularoff , Valendo REP ! (/showthread.php?tid=376041)



/celuaron /celularoff , Valendo REP ! - Petrick™ - 08.09.2012

Bom Galera, meu GM tem um sistema de desligar o celular e liga o celular, mais precisa escreve /desativar nome , exemplo: /desativar celular, gostaria de colocar assim,

PHP код:
/celuaron //para ligar
/celularoff //para desligar
Isso й sу para VIPOlhe o codigo.
        else if(
strcmp(tmp"celular"true) == 0)
        {
            if(
PlayerInfo[playerid][pVIP] > || PlayerInfo[playerid][pAdmin] > 1)
            {
                if (!
PhoneOnline[playerid])
                {
                    
PhoneOnline[playerid] = 1;
                    
SendClientMessage(playeridCOLOR_GRAD2"   Vocк desligou seu celular (nгo receberб ligaзхes nem SMS) !");
                    
CellTime[playerid] = 0;
                    
Mobile[playerid] = 255;
                    new 
pSpecialAction GetPlayerSpecialAction(playerid);
                    if (
pSpecialAction == SPECIAL_ACTION_USECELLPHONE)
                    {
                        
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
                    }
                }
                else if (
PhoneOnline[playerid])
                {
                    
PhoneOnline[playerid] = 0;
                    
SendClientMessage(playeridCOLOR_GRAD2"   Vocк ligou seu celular !");
                }
            }
        }
        else
        {
            
SendClientMessage(playeridCOLOR_WHITE"|______________ Desabilitar ______________|");
            
SendClientMessage(playeridCOLOR_WHITE,"/desativar [nome]");
            
SendClientMessage(playeridCOLOR_GREY,"Nomes Disponнveis: org, noticias, celular");
        }
        return 
1;
    }