[AJUDA] chat aparecendo para todos nao consegui arrumar ate agora ja tentei de tudo
#1

Queria que o chat aparecesse so para quem estivesse proximo um do outro

PHP код:
public OnPlayerText(playeridtext[])
{
    new 
giver[MAX_PLAYER_NAME];
    new 
giveplayer[MAX_PLAYER_NAME];
    new 
tmp[128];
    new 
string[360];
    new 
giveplayerid;
    
PlayerInactivity[playerid] = 0;
    
//SpamProtection(playerid);
    
if(TentouDivulgar(text))
    {
        if(
cdivulgar[playerid] >= 4)
        {
            
SendClientMessage(playeridCOLOR_LIGHTBLUE,"Aqui vocк nгo pode anunciar servidores!");
               
SendClientMessage(playeridCOLOR_LIGHTBLUE,"Seu servidor й uma merda, nгo divulgue-o aqui!");
               
SendClientMessage(playeridCOLOR_LIGHTBLUE,"Seu noob peguei esse IP e vou divulgar nesse server tambйm, uaheuhaeuhaeahe!");
               
PlayerPlaySound(playerid11330.00.00.0);
               
Kick(playerid);
        }
        
format(string128"AdmAviso: [%d]%s tentou divulgar: %s.",playerid,PlayerName(playerid),text);
        
ABroadCast(COLOR_YELLOW,string,1);
        
DivulgouLog(string);
           
cdivulgar[playerid] += 1;
           return 
0;
    }
    if(
PlayerInfo[playerid][pMuted] == 1)
    {
        
SendClientMessage(playeridTEAM_CYAN_COLOR"Vocк nгo pode falar, vocк foi calado");
        return 
0;
    }
    if(
SelectChar[playerid] == 255)
    {
        new 
idx;
        
tmp strtok(textidx);
        if ((
strcmp("Proximo"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("Proximo")))
        {
            switch (
SelectCharID[playerid])
            {
                case 
1//Policia Militar
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid280); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 280; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid281); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 281; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid282); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 282; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid265); SelectCharPlace[playerid] = 5ChosenSkin[playerid] = 265; }
                    else if(
SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid267); SelectCharPlace[playerid] = 6ChosenSkin[playerid] = 267; }
                    else if(
SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid246); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 246; }
                }
                case 
2//B.O.P.E
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid285); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 285; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid298); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 298; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid285); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 285; }
                }
                case 
3//Exйrcito
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid287); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 287; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid191); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 191; }
                }
                case 
4//SAMU
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid91); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 91; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid279); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 279; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid277); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 277; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid276); SelectCharPlace[playerid] = 5ChosenSkin[playerid] = 276; }
                    else if(
SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid275); SelectCharPlace[playerid] = 6ChosenSkin[playerid] = 275; }
                    else if(
SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid279); SelectCharPlace[playerid] = 7ChosenSkin[playerid] = 279; }
                    else if(
SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid274); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 274; }
                }
                case 
5//Varrios Los Aztecas
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid116); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 116; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid115); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 115; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid114); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 114; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid41); SelectCharPlace[playerid] = 5ChosenSkin[playerid] = 41; }
                    else if(
SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid148); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 148; }
                }
                case 
6//Hamas
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid122); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 122; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid272); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 272; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid131); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 131; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid128); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 128; }
                }
                case 
7//Prefeito
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid164); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 164; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid163); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 163; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid17); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 17; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid141); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 141; }
                }
                case 
8//Hitman Agency
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid166); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 166; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid165); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 165; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid127); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 127; }
                }
                case 
9//Reporteres
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid188); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 188; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid187); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 187; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid148); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 148; }
                }
                case 
10//Taxistas
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid255); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 255; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid219); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 219; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid253); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 253; }
                }
                case 
11//Policia federal
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid224); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 224; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid286); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 286; }
                }
                case 
12//Mafia CN
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid17); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 17; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid43); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 43; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid46); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 46; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid98); SelectCharPlace[playerid] = 5ChosenSkin[playerid] = 98; }
                    else if(
SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid111); SelectCharPlace[playerid] = 6ChosenSkin[playerid] = 111; }
                    else if(
SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid223); SelectCharPlace[playerid] = 7ChosenSkin[playerid] = 223; }
                    else if(
SelectCharPlace[playerid] == 7) { SetPlayerSkin(playerid126); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 126; }
                }
                case 
13//Yakuza
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid203); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 203; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid204); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 204; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid117); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 117; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid118); SelectCharPlace[playerid] = 5ChosenSkin[playerid] = 118; }
                    else if(
SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid169); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 169; }
                }
                case 
14//Groove
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid105); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 105; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid106); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 106; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid107); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 107; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid271); SelectCharPlace[playerid] = 5ChosenSkin[playerid] = 271; }
                    else if(
SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid195); SelectCharPlace[playerid] = 6ChosenSkin[playerid] = 195; }
                    else if(
SelectCharPlace[playerid] == 6) { SetPlayerSkin(playerid269); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 269; }
                }
                case 
15//Al'qaeda
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid30); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 30; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid47); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 47; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid48); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 48; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid192); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 192; }
                }
                case 
16//Policia Civil
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid59); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 59; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid124); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 124; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid76); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 76; }
                }
                case 
17//Ballas
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid102); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 102; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid103); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 103; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid104); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 104; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid40); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 40; }
                }
                case 
18//Vagos
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid108); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 108; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid109); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 109; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid110); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 110; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid91); SelectCharPlace[playerid] = 5ChosenSkin[playerid] = 91; }
                    else if(
SelectCharPlace[playerid] == 5) { SetPlayerSkin(playerid85); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 85; }
                }
                case 
19//Comando Vermelho
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid19); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 19; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid170); SelectCharPlace[playerid] = 3ChosenSkin[playerid] = 170; }
                    else if(
SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid40); SelectCharPlace[playerid] = 4ChosenSkin[playerid] = 40; }
                    else if(
SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid193); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 193; }
                }
                case 
20//Sons of Anarchy
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid247); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 247; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid248); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 248; }
                }
                case 
21//DRIFTERS
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid101); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 101; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid293); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 293; }
                }
                case 
22//TRIADS
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid117); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 117; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid118); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 118; }
                }
                case 
23//FARC
                
{
                    if(
SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid111); SelectCharPlace[playerid] = 2ChosenSkin[playerid] = 111; }
                    else if(
SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid112); SelectCharPlace[playerid] = 1ChosenSkin[playerid] = 112; }
                }
            }
            return 
0;
        }
        else if ((
strcmp("Confirma"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("Confirma")))
        {
            if(
IsAtClothShop(playerid))
            {
                
PlayerInfo[playerid][pSkin] = ChosenSkin[playerid];
                
SelectCharPlace[playerid] = 0;
                
SelectCharID[playerid] = 0;
                
SelectChar[playerid] = 0;
                return 
0;
            }
            if(
ChangePos2[playerid][1] == 1)
            {
                
PlayerInfo[playerid][pSkin] = ChosenSkin[playerid];
                
SetPlayerInterior(playeridChangePos2[playerid][0]);
                
SetPlayerPos(playeridChangePos[playerid][0],ChangePos[playerid][1],ChangePos[playerid][2]);
                
ChangePos2[playerid][1] = 0;
                return 
0;
            }
            
PlayerInfo[playerid][pSkin] = ChosenSkin[playerid];
            
//PlayerInfo[playerid][pSpawn] = 0;
            
SetSpawnInfo(playeridPlayerInfo[playerid][pTeam], PlayerInfo[playerid][pSkin],0.0,0.0,0.0,0,0,0,0,0,0,0);
            
gTeam[playerid] = PlayerInfo[playerid][pTeam];
            
SetPlayerToTeamColor(playerid);
            
MedicBill[playerid] = 0;
            
SpawnPlayer(playerid);
            
SelectCharPlace[playerid] = 0;
            
SelectCharID[playerid] = 0;
            
SelectChar[playerid] = 0;
            return 
0;
        }
        else
        {
            
SendClientMessage(playeridTEAM_VAGOS_COLOR"* Use 'Proximo', ou 'Confirma'.");
            return 
0;
        }
    }
    if(
MarriageCeremoney[playerid] > 0)
    {
        new 
idx;
        
tmp strtok(textidx);
        if ((
strcmp("sim"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("sim")))
        {
            if(
GotProposedBy[playerid] < 999)
            {
                if(
IsPlayerConnected(GotProposedBy[playerid]))
                {
                    
GetPlayerName(playeridsendernamesizeof(sendername));
                    
GetPlayerName(GotProposedBy[playerid], giveplayersizeof(giveplayer));
                    
format(stringsizeof(string), "Padre: %s Vocк aceita %s como sua amada esposa? (Digite 'sim', qualquer outra coisa cancela o casamento)."giveplayer,PlayerName(playerid));
                    
SendClientMessage(GotProposedBy[playerid], COLOR_WHITEstring);
                    
MarriageCeremoney[GotProposedBy[playerid]] = 1;
                    
MarriageCeremoney[playerid] = 0;
                    
GotProposedBy[playerid] = 999;
                    return 
true;
                }
                else
                {
                    
MarriageCeremoney[playerid] = 0;
                    
GotProposedBy[playerid] = 999;
                    return 
0;
                }
            }
            else if(
ProposedTo[playerid] < 999)
            {
                if(
IsPlayerConnected(ProposedTo[playerid]))
                {
                    
GetPlayerName(playeridsendernamesizeof(sendername));
                    
GetPlayerName(ProposedTo[playerid], giveplayersizeof(giveplayer));
                    if(
PlayerInfo[playerid][pSex] == && PlayerInfo[ProposedTo[playerid]][pSex] == 2)
                    {
                        
format(stringsizeof(string), "Padre: %s e %s eu vos declaro Marido e Mulher, Pode Beijar a Noiva."sendernamegiveplayer);
                        
SendClientMessage(playeridCOLOR_WHITEstring);
                           
format(stringsizeof(string), "Padre: %s e %s eu vos declaro Marido e Mulher, Pode Beijar o Noivo."giveplayerPlayerName(playerid));
                        
SendClientMessage(ProposedTo[playerid], COLOR_WHITEstring);
                        
format(stringsizeof(string), "Noticia de Casamento: Temos um novo Casamento, %s e %s se casaram."sendernamegiveplayer);
                        
OOCNews(COLOR_WHITEstring);
                    }
                    else if(
PlayerInfo[playerid][pSex] == && PlayerInfo[ProposedTo[playerid]][pSex] == 1)
                    {
                        
format(stringsizeof(string), "Padre: %s e %s eu os declaro Marido e Marido, Pode Beijar o Noivo."sendernamegiveplayer);
                        
SendClientMessage(playeridCOLOR_WHITEstring);
                           
format(stringsizeof(string), "Padre: %s e %s eu os declaro Marido e Marido, Pode Beijar o Noivo."giveplayerPlayerName(playerid));
                        
SendClientMessage(ProposedTo[playerid], COLOR_WHITEstring);
                        
format(stringsizeof(string), "Noticia de Casamento: Temos um novo Casamento Gay, %s e %s se casaram."sendernamegiveplayer);
                        
OOCNews(COLOR_WHITEstring);
                    }
                    else if(
PlayerInfo[playerid][pSex] == && PlayerInfo[ProposedTo[playerid]][pSex] == 2)
                    {
                        
format(stringsizeof(string), "Padre: %s e %s eu os declaro Esposa e Esposa, Pode Beijar a Noiva."sendernamegiveplayer);
                        
SendClientMessage(playeridCOLOR_WHITEstring);
                           
format(stringsizeof(string), "Padre: %s e %s eu os declaro Esposa e Esposa, Pode Beijar a Noiva"giveplayerPlayerName(playerid));
                        
SendClientMessage(ProposedTo[playerid], COLOR_WHITEstring);
                        
format(stringsizeof(string), "Noticia de Casamento: Temos um novo Casamento Lesbico, %s e %s se casaram."sendernamegiveplayer);
                        
OOCNews(COLOR_WHITEstring);
                    }
                    
//MarriageCeremoney[ProposedTo[playerid]] = 1;
                    
MarriageCeremoney[ProposedTo[playerid]] = 0;
                    
MarriageCeremoney[playerid] = 0;
                    
format(stringsizeof(string), "%s"PlayerName(playerid));
                    
strmid(PlayerInfo[ProposedTo[playerid]][pMarriedTo], string0strlen(string), 255);
                    
format(stringsizeof(string), "%s"giveplayer);
                    
strmid(PlayerInfo[playerid][pMarriedTo], string0strlen(string), 255);
                    
GivePlayerMoney(playerid, - 100);
                    
PlayerInfo[playerid][pMarried] = 1;
                    
PlayerInfo[ProposedTo[playerid]][pMarried] = 1;
                    
PlayerInfo[ProposedTo[playerid]][pPHousekey] = PlayerInfo[playerid][pPHousekey];
                    
PlayerInfo[ProposedTo[playerid]][pPbiskey] = PlayerInfo[playerid][pPbiskey];
                    
ProposedTo[playerid] = 999;
                    
MarriageCeremoney[playerid] = 0;
                    return 
true;
                }
                else
                {
                    
MarriageCeremoney[playerid] = 0;
                    
ProposedTo[playerid] = 999;
                    return 
0;
                }
            }
        }
        else
        {
            if(
GotProposedBy[playerid] < 999)
            {
                if(
IsPlayerConnected(GotProposedBy[playerid]))
                {
                    
GetPlayerName(playeridsendernamesizeof(sendername));
                    
GetPlayerName(GotProposedBy[playerid], giveplayersizeof(giveplayer));
                    
format(stringsizeof(string), "* Vocк deseja se casar com %s, Se Quizer Digite 'sim'.",giveplayer);
                    
SendClientMessage(playeridCOLOR_YELLOWstring);
                    
format(stringsizeof(string), "* %s quer casar com Vocк, um 'sim' foi dito.",PlayerName(playerid));
                    
SendClientMessage(GotProposedBy[playerid], COLOR_YELLOWstring);
                    return 
0;
                }
                else
                {
                    
MarriageCeremoney[playerid] = 0;
                    
GotProposedBy[playerid] = 999;
                    return 
0;
                }
            }
            else if(
ProposedTo[playerid] < 999)
            {
                if(
IsPlayerConnected(ProposedTo[playerid]))
                {
                    
GetPlayerName(playeridsendernamesizeof(sendername));
                    
GetPlayerName(ProposedTo[playerid], giveplayersizeof(giveplayer));
                    
format(stringsizeof(string), "* Vocк deseja se casar com %s, Se Quizer Digite 'sim'.",giveplayer);
                    
SendClientMessage(playeridCOLOR_YELLOWstring);
                    
format(stringsizeof(string), "* %s quer casar com Vocк, um 'sim' foi dito.",PlayerName(playerid));
                    
SendClientMessage(ProposedTo[playerid], COLOR_YELLOWstring);
                    return 
0;
                }
                else
                {
                    
MarriageCeremoney[playerid] = 0;
                    
ProposedTo[playerid] = 999;
                    return 
0;
                }
            }
        }
        return 
0;
    }
    if(
ConnectedToPC[playerid] == 255)
    {
        new 
idx;
        
tmp strtok(textidx);
        if ((
strcmp("Contratos"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("Contratos")))
        {
            if(
GetPlayerOrg(playerid) == 8) { FH 1; }
            if(
GetPlayerOrg(playerid) == 22) { FK 1; }
            
SearchingHit(playerid);
            return 
0;
        }
        else if ((
strcmp("noticias"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("noticias")))
        {
                new 
x_nr[256];
                
x_nr strtok(textidx);
                if(!
strlen(x_nr)) {
                    
SendClientMessage(playeridCOLOR_WHITE"|__________________ Noticia da agencia dos Assasinos __________________|");
                    
SendClientMessage(playeridCOLOR_WHITE"USE: noticias [Numero] ou noticias apagar [Numero] ou noticias apagar tudo");
                    
format(stringsizeof(string), "1: %s :: Assasino: %s"News[hAdd1], News[hContact1]);
                    
SendClientMessage(playeridCOLOR_GREYstring);
                    
format(stringsizeof(string), "2: %s :: Assasino: %s"News[hAdd2], News[hContact2]);
                    
SendClientMessage(playeridCOLOR_GREYstring);
                    
format(stringsizeof(string), "3: %s :: Assasino: %s"News[hAdd3], News[hContact3]);
                    
SendClientMessage(playeridCOLOR_GREYstring);
                    
format(stringsizeof(string), "4: %s :: Assasino: %s"News[hAdd4], News[hContact4]);
                    
SendClientMessage(playeridCOLOR_GREYstring);
                    
format(stringsizeof(string), "5: %s :: Assasino: %s"News[hAdd5], News[hContact5]);
                    
SendClientMessage(playeridCOLOR_GREYstring);
                    
SendClientMessage(playeridCOLOR_WHITE"|________________________________________________________|");
                    return 
0;
                }
//lets start
                
if(strcmp(x_nr,"1",true) == 0)
                {
                    if(
PlacedNews[playerid] == 1) { SendClientMessage(playeridCOLOR_GREY"   Ja tem uma noticia nesse numero, apague primeiro!"); return 0; }
                    if(
PlayerInfo[playerid][pCargo] < 3) { SendClientMessage(playeridCOLOR_GREY"   Vocк precisa de cargo 3+ para escrever uma noticia!"); return 0; }
                    if(
News[hTaken1] == 0)
                    {
                        
GetPlayerName(playeridsendernamesizeof(sendername));
                        if(
strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playeridCOLOR_GREY"   Texto da noticia muito curto!"); return 0; }
                        
format(stringsizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd1], string0strlen(string), 255);
                        
format(stringsizeof(string), "%s",sendername); strmid(News[hContact1], string0strlen(string), 255);
                        
News[hTaken1] = 1PlacedNews[playerid] = 1;
                        
SendClientMessage(playeridCOLOR_LIGHTBLUE"* Vocк criou uma nova noticia na agencia dos Assasinos.");
                        return 
0;
                    }
                    else
                    {
                        
SendClientMessage(playeridCOLOR_GREY"   Slot 1 ocupado!");
                        return 
0;
                    }
                }
                else if(
strcmp(x_nr,"2",true) == 0)
                {
                    if(
PlacedNews[playerid] == 1) { SendClientMessage(playeridCOLOR_GREY"   Ja tem uma noticia nesse numero, apague primeiro!"); return 0; }
                    if(
PlayerInfo[playerid][pCargo] < 3) { SendClientMessage(playeridCOLOR_GREY"   Vocк precisa de cargo 3+ para escrever uma noticia!"); return 0; }
                    if(
News[hTaken2] == 0)
                    {
                        
GetPlayerName(playeridsendernamesizeof(sendername));
                        if(
strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playeridCOLOR_GREY"   Texto da noticia muito curto!"); return 0; }
                        
format(stringsizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd2], string0strlen(string), 255);
                        
format(stringsizeof(string), "%s",sendername); strmid(News[hContact2], string0strlen(string), 255);
                        
News[hTaken2] = 1PlacedNews[playerid] = 1;
                        
SendClientMessage(playeridCOLOR_LIGHTBLUE"* Vocк criou uma nova noticia na agencia dos Assasinos.");
                        return 
0;
                    }
                    else
                    {
                        
SendClientMessage(playeridCOLOR_GREY"   Slot 2 ocupado!");
                        return 
0;
                    }
                }
                else if(
strcmp(x_nr,"3",true) == 0)
                {
                    if(
PlacedNews[playerid] == 1) { SendClientMessage(playeridCOLOR_GREY"   Ja tem uma noticia nesse numero, apague primeiro!"); return 0; }
                    if(
PlayerInfo[playerid][pCargo] < 3) { SendClientMessage(playeridCOLOR_GREY"   Vocк precisa de cargo 3+ para escrever uma noticia!"); return 0; }
                    if(
News[hTaken3] == 0)
                    {
                        
GetPlayerName(playeridsendernamesizeof(sendername));
                        if(
strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playeridCOLOR_GREY"   Texto da noticia muito curto!"); return 0; }
                        
format(stringsizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd3], string0strlen(string), 255);
                        
format(stringsizeof(string), "%s",sendername); strmid(News[hContact3], string0strlen(string), 255);
                        
News[hTaken3] = 1PlacedNews[playerid] = 1;
                        
SendClientMessage(playeridCOLOR_LIGHTBLUE"* Vocк criou uma nova noticia na agencia dos Assasinos.");
                        return 
0;
                    }
                    else
                    {
                        
SendClientMessage(playeridCOLOR_GREY"   Slot 3 ocupado!");
                        return 
0;
                    }
                }
                else if(
strcmp(x_nr,"4",true) == 0)
                {
                    if(
PlacedNews[playerid] == 1) { SendClientMessage(playeridCOLOR_GREY"   Ja tem uma noticia nesse numero, apague primeiro!"); return 0; }
                    if(
PlayerInfo[playerid][pCargo] < 3) { SendClientMessage(playeridCOLOR_GREY"   Vocк precisa de cargo 3+ para escrever uma noticia!"); return 0; }
                    if(
News[hTaken4] == 0)
                    {
                        
GetPlayerName(playeridsendernamesizeof(sendername));
                        if(
strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playeridCOLOR_GREY"   Texto da noticia muito curto !"); return 0; }
                        
format(stringsizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd4], string0strlen(string), 255);
                        
format(stringsizeof(string), "%s",sendername); strmid(News[hContact4], string0strlen(string), 255);
                        
News[hTaken4] = 1PlacedNews[playerid] = 1;
                        
SendClientMessage(playeridCOLOR_LIGHTBLUE"* Vocк criou uma nova noticia na agencia dos Assasinos.");
                        return 
0;
                    }
                    else
                    {
                        
SendClientMessage(playeridCOLOR_GREY"   Slot 4 ocupado!");
                        return 
0;
                    }
                }
                else if(
strcmp(x_nr,"5",true) == 0)
                {
                    if(
PlacedNews[playerid] == 1) { SendClientMessage(playeridCOLOR_GREY"   Ja tem uma noticia nesse numero, apague primeiro!"); return 0; }
                    if(
PlayerInfo[playerid][pCargo] < 3) { SendClientMessage(playeridCOLOR_GREY"   Vocк precisa de cargo 3+ para escrever uma noticia!"); return 0; }
                    if(
News[hTaken5] == 0)
                    {
                        
GetPlayerName(playeridsendernamesizeof(sendername));
                        if(
strlen(text)-(strlen(x_nr)) < 9) { SendClientMessage(playeridCOLOR_GREY"   Texto da noticia muito curto!"); return 0; }
                        
format(stringsizeof(string), "%s",right(text,strlen(text)-7)); strmid(News[hAdd5], string0strlen(string), 255);
                        
format(stringsizeof(string), "%s",sendername); strmid(News[hContact5], string0strlen(string), 255);
                        
News[hTaken5] = 1PlacedNews[playerid] = 1;
                        
SendClientMessage(playeridCOLOR_LIGHTBLUE"* Vocк criou uma nova noticia na agencia dos Assasinos.");
                        return 
0;
                    }
                    else
                    {
                        
SendClientMessage(playeridCOLOR_GREY"   Slot 5 ocupado !");
                        return 
0;
                    }
                }
                else if(
strcmp(x_nr,"apagar",true) == 0)
                {
                    if(
PlayerInfo[playerid][pCargo] < 4)
                    {
                        
SendClientMessage(playeridCOLOR_GREY"   Vocк precisa de cargo 4+ para apagar mensagens!");
                        return 
0;
                    }
                    new 
string1[MAX_PLAYER_NAME];
                    new 
x_tel[256];
                    
x_tel strtok(textidx);
                    if(!
strlen(x_tel)) {
                        
SendClientMessage(playeridCOLOR_WHITE"USE: noticias apagar [Numero] ou noticias apagar tudo.");
                        return 
0;
                    }
                    if(
strcmp(x_tel,"1",true) == 0)
                    {
                        
format(stringsizeof(string), "Nada"); strmid(News[hAdd1], string0strlen(string), 255);
                        
format(string1sizeof(string1), "Ninguem");    strmid(News[hContact1], string10strlen(string1), 255);
                        
News[hTaken1] = 0;
                        
PlacedNews[playerid] = 0;
                        
SendClientMessage(playeridCOLOR_LIGHTBLUE"* Vocк apagou a noticia (1) da Agencia dos Assasinos.");
                        return 
0;
                    }
                    else if(
strcmp(x_tel,"2",true) == 0)
                    {
                        
format(stringsizeof(string), "Nada"); strmid(News[hAdd2], string0strlen(string), 255);
                        
format(string1sizeof(string1), "Ninguem");    strmid(News[hContact2], string10strlen(string1), 255);
                        
News[hTaken2] = 0;
                        
PlacedNews[playerid] = 0;
                        
SendClientMessage(playeridCOLOR_LIGHTBLUE"* Vocк apagou a noticia (2) da Agencia dos Assasinos.");
                        return 
0;
                    }
                    else if(
strcmp(x_tel,"3",true) == 0)
                    {
                        
format(stringsizeof(string), "Nada"); strmid(News[hAdd3], string0strlen(string), 255);
                        
format(string1sizeof(string1), "Ninguem");    strmid(News[hContact3], string10strlen(string1), 255);
                        
News[hTaken3] = 0;
                        
PlacedNews[playerid] = 0;
                        
SendClientMessage(playeridCOLOR_LIGHTBLUE"* Vocк apagou a noticia (3) da Agencia dos Assasinos.");
                        return 
0;
                    }
                    else if(
strcmp(x_tel,"4",true) == 0)
                    {
                        
format(stringsizeof(string), "Nada"); strmid(News[hAdd4], string0strlen(string), 255);
                        
format(string1sizeof(string1), "Ninguem");    strmid(News[hContact4], string10strlen(string1), 255);
                        
News[hTaken4] = 0;
                        
PlacedNews[playerid] = 0;
                        
SendClientMessage(playeridCOLOR_LIGHTBLUE"* Vocк apagou a noticia (4) da Agencia dos Assasinos.");
                        return 
0;
                    }
                    else if(
strcmp(x_tel,"5",true) == 0)
                    {
                        
format(stringsizeof(string), "Nada"); strmid(News[hAdd5], string0strlen(string), 255);
                        
format(string1sizeof(string1), "Ninguem");    strmid(News[hContact5], string10strlen(string1), 255);
                        
News[hTaken5] = 0;
                        
PlacedNews[playerid] = 0;
                        
SendClientMessage(playeridCOLOR_LIGHTBLUE"* Vocк apagou a noticia (5) da Agencia dos Assasinos.");
                        return 
0;
                    }
                    else if(
strcmp(x_tel,"tudo",true) == 0)
                    {
                        
format(stringsizeof(string), "Nada"); strmid(News[hAdd1], string0strlen(string), 255);
                        
format(string1sizeof(string1), "Ninguem");    strmid(News[hContact1], string10strlen(string1), 255);
                        
News[hTaken1] = 0;
                        
format(stringsizeof(string), "Nada"); strmid(News[hAdd2], string0strlen(string), 255);
                        
format(string1sizeof(string1), "Ninguem");    strmid(News[hContact2], string10strlen(string1), 255);
                        
News[hTaken2] = 0;
                        
format(stringsizeof(string), "Nada"); strmid(News[hAdd3], string0strlen(string), 255);
                        
format(string1sizeof(string1), "Ninguem");    strmid(News[hContact3], string10strlen(string1), 255);
                        
News[hTaken3] = 0;
                        
format(stringsizeof(string), "Nada"); strmid(News[hAdd4], string0strlen(string), 255);
                        
format(string1sizeof(string1), "Ninguem");    strmid(News[hContact4], string10strlen(string1), 255);
                        
News[hTaken4] = 0;
                        
format(stringsizeof(string), "Nada"); strmid(News[hAdd5], string0strlen(string), 255);
                        
format(string1sizeof(string1), "Ninguem");    strmid(News[hContact5], string10strlen(string1), 255);
                        
News[hTaken5] = 0;
                        
PlacedNews[playerid] = 0;
                        
PlacedNews[playerid] = 0;
                        
PlacedNews[playerid] = 0;
                        
PlacedNews[playerid] = 0;
                        
PlacedNews[playerid] = 0;
                        
SendClientMessage(playeridCOLOR_LIGHTBLUE"* Vocк apagou todas as mensagens da agencia dos Assasinos.");
                        return 
0;
                    }
                    else
                    {
                        
SendClientMessage(playeridCOLOR_WHITE"USE: noticias apagar [Numero] ou noticias apagar tudo.");
                        return 
0;
                    }
                }
                else { return 
0; }
        }
        else if ((
strcmp("darcont"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("darcont")))
        {
            if(
PlayerInfo[playerid][pCargo] < 4)
            {
                
SendClientMessage(playeridCOLOR_GREY"   Vocк precisa de cargo 4+ para dar contrato!");
                return 
0;
            }
            if(
hitfound == 0)
            {
                
SendClientMessage(playeridCOLOR_GREY"   Nгo ha contratos, USE contratos em seu laptop primeiro!");
                return 
0;
            }
            
tmp strtok(textidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_GRAD1"USE: darcont [ID/Nome]");
                return 
0;
            }
            
//giveplayerid = strval(tmp);
            
giveplayerid ReturnUser(tmp);
            if(
IsPlayerConnected(giveplayerid))
            {
                if(
giveplayerid != INVALID_PLAYER_ID)
                {
                    if(
GetPlayerOrg(playerid) != GetPlayerOrg(giveplayerid))
                    {
                        
SendClientMessage(playeridCOLOR_GREY"   Esse Jogador nгo й um Assassino!");
                        return 
0;
                    }
                    if(
GoChase[giveplayerid] < 999)
                    {
                        
SendClientMessage(playeridCOLOR_GREY"   Esse assasino ja possui um contrato!");
                        return 
0;
                    }
                    if(
IsPlayerConnected(hitid))
                    {
                        
GetPlayerName(playeridsendernamesizeof(sendername));
                        
GetPlayerName(giveplayeridgiversizeof(giver));
                        
GetPlayerName(hitidgiveplayersizeof(giveplayer));
                        
format(stringsizeof(string), "* Assasino %s, deu um contrato para %s matar: %s(ID:%d), por R$%d."sendernamegivergiveplayerhitidPlayerInfo[hitid][pHeadValue]);
                        
SendFamilyMessage(GetPlayerOrg(playerid), COLOR_YELLOWstring);
                        
GoChase[giveplayerid] = hitid;
                        
GetChased[hitid] = giveplayerid;
                        
GotHit[hitid] = 1;
                        
hitid 0;
                        
hitfound 0;
                        return 
0;
                    }
                    else
                    {
                        
SendClientMessage(playeridCOLOR_GREY"   O contrato saiu do servidor, USE contratos no seu laptop novamente!");
                        return 
0;
                    }
                }
                return 
0;
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GREY"   Esse nгo e um assasino ativo!");
                return 
0;
            }
        }
        else if ((
strcmp("membros"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("membros")))
        {
            
SendClientMessage(playeridCOLOR_WHITE"|__________________ Membros da Agencia __________________|");
            for(new 
i=0MAX_PLAYERSi++)
            {
                if(
IsPlayerConnected(i))
                {
                    if(
GetPlayerOrg(playerid) == || GetPlayerOrg(playerid) == 22)
                    {
                        
GetPlayerName(igiveplayersizeof(giveplayer));
                        
format(stringsizeof(string), "* %s: Cargo %d"giveplayer,PlayerInfo[i][pCargo]);
                        
SendClientMessage(playeridCOLOR_GREYstring);
                    }
                }
            }
        }
        else if ((
strcmp("pedido"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("pedido")))
        {
            if(
OrderReady[playerid] > 0)
            {
                
SendClientMessage(playeridCOLOR_GREY"Seu pacote foi entregue a sua HQ, verifique na Caixa de Pacotes !");
                return 
0;
            }
            
tmp strtok(textidx);
            if ((
strcmp("1"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("1")))
            {
                if(
PlayerInfo[playerid][pCargo] < 1) { SendClientMessage(playeridCOLOR_GREY"   Vocк nгo tem cargo suficiente para pegar esse pacote!"); return 0; }
                if(
GetPlayerMoney(playerid) > 1)
                {
                    
SendClientMessage(playeridCOLOR_GREY"Seu pacote foi entregue a sua HQ, verifique na Caixa de Pacotes !");
                    
OrderReady[playerid] = 1;
                    return 
0;
                }
                else
                {
                    
SendClientMessage(playeridCOLOR_GREY,"   Vocк nгo possui essa grana!");
                    return 
0;
                }
            }
            else if ((
strcmp("2"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("2")))
            {
                if(
PlayerInfo[playerid][pCargo] < 1) { SendClientMessage(playeridCOLOR_GREY"   Vocк nгo tem cargo suficiente para pegar esse pacote!"); return 0; }
                if(
GetPlayerMoney(playerid) > 1)
                {
                    
SendClientMessage(playeridCOLOR_GREY"Seu pacote foi entregue a sua HQ, verifique na Caixa de Pacotes !");
                    
OrderReady[playerid] = 2;
                    return 
0;
                }
                else
                {
                    
SendClientMessage(playeridCOLOR_GREY,"   Vocк nгo possui essa grana!");
                    return 
0;
                }
            }
            else if ((
strcmp("3"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("3")))
            {
                if(
PlayerInfo[playerid][pCargo] < 1) { SendClientMessage(playeridCOLOR_GREY"   Vocк nгo tem cargo suficiente para pegar esse pacote!"); return 0; }
                if(
GetPlayerMoney(playerid) > 1)
                {
                    
SendClientMessage(playeridCOLOR_GREY"Seu pacote foi entregue a sua HQ, verifique na Caixa de Pacotes !");
                    
OrderReady[playerid] = 3;
                    return 
0;
                }
                else
                {
                    
SendClientMessage(playeridCOLOR_GREY,"   Vocк nгo possui essa grana!");
                    return 
0;
                }
            }
            else if ((
strcmp("4"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("4")))
            {
                if(
PlayerInfo[playerid][pCargo] < 2) { SendClientMessage(playeridCOLOR_GREY"   Vocк nгo tem cargo suficiente para pegar esse pacote!"); return 0; }
                if(
GetPlayerMoney(playerid) > 1)
                {
                    
SendClientMessage(playeridCOLOR_GREY"Seu pacote foi entregue a sua HQ, verifique na Caixa de Pacotes !");
                    
OrderReady[playerid] = 4;
                    return 
0;
                }
                else
                {
                    
SendClientMessage(playeridCOLOR_GREY,"   Vocк nгo possui essa grana!");
                    return 
0;
                }
            }
            else if ((
strcmp("5"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("5")))
            {
                if(
PlayerInfo[playerid][pCargo] < 2) { SendClientMessage(playeridCOLOR_GREY"   Vocк nгo tem cargo suficiente para pegar esse pacote!"); return 0; }
                if(
GetPlayerMoney(playerid) > 1)
                {
                    
SendClientMessage(playeridCOLOR_GREY"Seu pacote foi entregue a sua HQ, verifique na Caixa de Pacotes !");
                    
OrderReady[playerid] = 5;
                    return 
0;
                }
                else
                {
                    
SendClientMessage(playeridCOLOR_GREY,"   Vocк nгo possui essa grana!");
                    return 
0;
                }
            }
            else if ((
strcmp("6"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("6")))
            {
                if(
PlayerInfo[playerid][pCargo] < 3) { SendClientMessage(playeridCOLOR_GREY"   Vocк nгo tem cargo suficiente para pegar esse pacote!"); return 0; }
                if(
GetPlayerMoney(playerid) > 1)
                {
                    
SendClientMessage(playeridCOLOR_GREY"Seu pacote foi entregue a sua HQ, verifique na Caixa de Pacotes !");
                    
OrderReady[playerid] = 6;
                    return 
0;
                }
                else
                {
                    
SendClientMessage(playeridCOLOR_GREY,"   Vocк nгo possui essa grana!");
                    return 
0;
                }
            }
            else if ((
strcmp("7"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("7")))
            {
                if(
PlayerInfo[playerid][pCargo] < 3) { SendClientMessage(playeridCOLOR_GREY"   Vocк nгo tem cargo suficiente para pegar esse pacote!"); return 0; }
                if(
GetPlayerMoney(playerid) > 1)
                {
                    
SendClientMessage(playeridCOLOR_GREY"Seu pacote foi entregue a sua HQ, verifique na Caixa de Pacotes !");
                    
OrderReady[playerid] = 7;
                    return 
0;
                }
                else
                {
                    
SendClientMessage(playeridCOLOR_GREY,"   Vocк nгo possui essa grana!");
                    return 
0;
                }
            }
            else if ((
strcmp("8"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("8")))
            {
                if(
GanhouArmamento == GetPlayerOrg(playerid))
                {
                    
SendClientMessage(playeridCOLOR_LIGHTBLUE"Seu Bфnus foi entregue a sua HQ, verifique na Caixa de Pacotes !");
                    
OrderReady[playerid] = 8;
                    return 
0;
                }
                else
                {
                    
SendClientMessage(playeridCOLOR_GREY,"   A sua organizaзгo nгo ganhou o Bфnus Especial por contratos concluidos!");
                    return 
0;
                }
            }
            else
            {
                
SendClientMessage(playeridCOLOR_WHITE"|__________________[ Pedidos Disponiveis ]__________________|");
                if(
PlayerInfo[playerid][pCargo] >= 1) { SendClientMessage(playeridCOLOR_GREY"|(1) Cargo 1 - 6: Knife, Eagle, MP5, Shotgun"); }
                if(
PlayerInfo[playerid][pCargo] >= 2) { SendClientMessage(playeridCOLOR_GREY"|(2) Cargo 2 - 6: Knife, Eagle, M4, MP5, Shotgun"); }
                if(
PlayerInfo[playerid][pCargo] >= 2) { SendClientMessage(playeridCOLOR_GREY"|(3) Cargo 2 - 6: Knife, Eagle, AK47, MP5, Shotgun, Colete"); }
                if(
PlayerInfo[playerid][pCargo] >= 3) { SendClientMessage(playeridCOLOR_GREY"|(4) Cargo 3 - 6: Knife, Eagle, M4, MP5, Shotgun, Sniper, Colete"); }
                if(
PlayerInfo[playerid][pCargo] >= 3) { SendClientMessage(playeridCOLOR_GREY"|(5) Cargo 3 - 6: Knife, Eagle, AK47, MP5, Shotgun, Sniper, Colete"); }
                if(
PlayerInfo[playerid][pCargo] >= 4) { SendClientMessage(playeridCOLOR_GREY"|(6) Cargo 4 - 6: Knife, Eagle, M4, MP5, Shotgun, Sniper, Colete"); }
                if(
PlayerInfo[playerid][pCargo] >= 4) { SendClientMessage(playeridCOLOR_GREY"|(7) Cargo 4 - 6: Knife, Eagle, AK47, MP5, Shotgun, Sniper, Colete"); }
                
SendClientMessage(playeridCOLOR_LIGHTRED"|(8) Bфnus: Knife, Eagle, AK47, MP5, Combat Shotgun, Sniper, Colete, e 100 mil.");
                return 
0;
            }
        }
        else if ((
strcmp("sair"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("sair")))
        {
            
SendClientMessage(playeridCOLOR_LIGHTBLUE"* Vocк desligou seu laptop e se desconectou de sua agencia.");
              
ConnectedToPC[playerid] = 0;
            return 
0;
        }
        else
        {
                
SendClientMessage(playeridCOLOR_WHITE"|___ Agencia dos Assasinos ___|");
                
SendClientMessage(playeridCOLOR_YELLOW2"|");
                
SendClientMessage(playeridCOLOR_YELLOW2"| - Noticias");
                
SendClientMessage(playeridCOLOR_YELLOW2"| - Contratos");
                
SendClientMessage(playeridCOLOR_YELLOW2"| - DarCont");
                
SendClientMessage(playeridCOLOR_YELLOW2"| - Pedido");
                
SendClientMessage(playeridCOLOR_YELLOW2"| - Membros");
                
SendClientMessage(playeridCOLOR_YELLOW2"| - Sair");
                
SendClientMessage(playeridCOLOR_WHITE"|______________|00:00|");
                return 
0;
        }
        return 
0;
    }
    if(
CallAdvogado[playerid] == 111)
    {
        new 
idx;
        
tmp strtok(textidx);
        if ((
strcmp("sim"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("sim")))
        {
            
GetPlayerName(playeridsendernamesizeof(sendername));
            
format(stringsizeof(string), "** %s estб na prisгo e precisa de um advogado, olhe /presos."PlayerName(playerid));
            
SendEmpregoMessage(2TEAM_AZTECAS_COLORstring);
            
SendClientMessage(playeridCOLOR_LIGHTRED"A Mensagem foi enviada para todos os advogados online, Por favor espere.");
            
WantAdvogado[playerid] = 0;
            
CallAdvogado[playerid] = 0;
            return 
0;
        }
        else
        {
            
SendClientMessage(playeridCOLOR_LIGHTRED"Sua sentenзa foi iniciada.");
            
WantAdvogado[playerid] = 0;
            
CallAdvogado[playerid] = 0;
            return 
0;
        }
    }
    if(
TalkingLive[playerid] != 255)
    {
        
GetPlayerName(playeridsendernamesizeof(sendername));
        if(
PlayerInfo[playerid][pMembro] == || PlayerInfo[playerid][pLider] == 4)
        {
            
format(stringsizeof(string), "Ao Vivo %s: %s"sendernametext);
            
OOCNews(COLOR_LIGHTGREENstring);
             
SetPlayerChatBubble(playeridtextCOLOR_AZULBB20.010000);
        }
        else
        {
            
format(stringsizeof(string), "Ao Vivo %s: %s"sendernametext);
            
OOCNews(COLOR_LIGHTGREENstring);
            
SetPlayerChatBubble(playeridtextCOLOR_AZULBB20.010000);
        }
        return 
0;
    }
    if(
Mobile[playerid] != 255)
    {
        new 
idx;
        
tmp strtok(textidx);
        
GetPlayerName(playeridsendernamesizeof(sendername));
        
format(stringsizeof(string), "%s diz (Celular): %s"sendernametext);
        
SetPlayerChatBubble(playeridstringCOLOR_AZULBB20.010000);
        
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
        
//printf("callers line %d called %d caller %d",Mobile[Mobile[playerid]],Mobile[playerid],playerid);
        
if(Mobile[playerid] == 191)
        {
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridTEAM_CYAN_COLOR"Denuncia: Desculpe, Nao Entendi");
                return 
0;
            }
            new 
turner[MAX_PLAYER_NAME];
            new 
wanted[128];
            
GetPlayerName(playeridturnersizeof(turner));
            
SendClientMessage(playeridTEAM_CYAN_COLOR"Denuncia: Temos alertado todas as unidades na бrea.");
            
SendClientMessage(playeridTEAM_CYAN_COLOR"Obrigado por Relatar o Ocorrido");
            
format(wantedsizeof(wanted), "Denuncia: Todas Unidades IA: Chamador: %s",turner);
            
SendFamilyMessage(1TEAM_CYAN_COLORwanted);
            
format(wantedsizeof(wanted), "Denuncia: %s",text);
            
SendFamilyMessage(1TEAM_CYAN_COLORwanted);
            
SendClientMessage(playeridCOLOR_GRAD2"   Ninguem na linha...");
            
Mobile[playerid] = 255;
            return 
0;
        }
        if(
Mobile[playerid] == 191)
        {
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_ALLDEPT"EMERGКNCIA: Desculpe eu nгo entendo");
                return 
0;
            }
            if ((
strcmp("nao"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("nao")))
            {
                new 
turner[MAX_PLAYER_NAME];
                new 
wanted[128];
                
GetPlayerName(playeridturnersizeof(turner));
                
SendClientMessage(playeridCOLOR_DBLUE"COP: Alertamos todos as unidades perto do local.");
                
SendClientMessage(playeridCOLOR_DBLUE"Obrigado por ter relatado o Ocorrido");
                
format(wantedsizeof(wanted), "HQ: Todas as unidades: Denunciante: %s",turner);
                
SendFamilyMessage(1COLOR_DBLUEwanted);
                
format(wantedsizeof(wanted), "HQ: Crime: %s, Suspeito: Desconhecido",PlayerCrime[playerid][pAccusing]);
                
SendFamilyMessage(1COLOR_DBLUEwanted);
                
SendClientMessage(playeridCOLOR_GRAD2"   Ninguйm na linha.....");
                
Mobile[playerid] = 255;
                return 
0;
            }
            new 
badguy;
            
//badguy = strval(tmp);
            
badguy ReturnUser(tmp);
            if (
IsPlayerConnected(badguy))
            {
                if(
badguy != INVALID_PLAYER_ID)
                {
                    if (
gTeam[badguy] == || gTeam[badguy] == 1)
                    {
                        
SendClientMessage(playeridCOLOR_DBLUE"Polнcia HQ: Vocк terб que entrar em contato com os assuntos internos. Esta й uma linha de emergкncia");
                        
SendClientMessage(playeridCOLOR_GRAD2"   Ninghem na linha...");
                        
Mobile[playerid] = 255;
                        return 
0;
                    }
                    if (
WantedPoints[badguy] > 0)
                    {
                        
SendClientMessage(playeridCOLOR_DBLUE"Polнcia HQ: Unidades jб estгo atribuнdos a esse caso.");
                        
SendClientMessage(playeridCOLOR_DBLUE"Obrigado por denunciar este crime");
                        
SendClientMessage(playeridCOLOR_GRAD2"   Ninguйmm na linha...");
                        
Mobile[playerid] = 255;
                        return 
0;
                    }
                    if (
badguy == playerid)
                    {
                        
SendClientMessage(playeridCOLOR_DBLUE"Polнcia HQ: Esta linha e de emergencia.");
                        
SendClientMessage(playeridCOLOR_GRAD2"   Ninguйmm na linha...");
                        
Mobile[playerid] = 255;
                        return 
0;
                    }
                    
SendClientMessage(playeridCOLOR_DBLUE"Polнcia HQ: Temos alertado todas as unidades na бrea.");
                    
SendClientMessage(playeridCOLOR_DBLUE"Obrigado por denunciar este crime");
                    
SetPlayerCriminal(badguy,playeridPlayerCrime[playerid][pAccusing]);
                    if(
WantedPoints[badguy] > 0) { } else
                    {
                        
WantedPoints[badguy] += 1;
                          
SetPlayerWantedLevel(badguyWantedPoints[badguy]);
                      }
                    
SendClientMessage(playeridCOLOR_GRAD2"   Ninguйmm na linha...");
                    
Mobile[playerid] = 255;
                    return 
0;
                }
//invalid id
                
return 0;
            }
//not connected
            
else
            {
                
format(stringsizeof(string), "Police HQ: Nenhuma informaзгo sobre %s, o nome citado esta correto?",tmp);
                
SendClientMessage(playeridCOLOR_DBLUEstring);
                return 
0;
            }
        }
        if(
Mobile[playerid] == 912)
        {
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_ALLDEPT"EMERGENCIA: Desculpe, nao entendi.");
                return 
0;
            }
            
strmid(PlayerCrime[playerid][pAccusing], text0strlen(text), 255);
            
SendClientMessage(playeridCOLOR_DBLUE"Polнcia HQ: Se vocк souber o nome do assaltante ou de parte dele, me fale, ou simplesmente dizer nгo");
            
Mobile[playerid] = 913;
            return 
0;
        }
        if(
Mobile[playerid] == 190)
        {
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_ALLDEPT"EMERGENCIA: Desculpe nгo entendo... Policia ou SAMU?");
                return 
0;
            }
            else if ((
strcmp("policia"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("policia")))
            {
                
SendClientMessage(playeridCOLOR_ALLDEPT"EMERGENCIA: Vocк optou por Policia, Espere.");
                
Mobile[playerid] = 912;
                
SendClientMessage(playeridCOLOR_DBLUE"Polнcia HQ: Por favor me dк uma breve descriзгo do crime.");
                return 
0;
            }
            else if ((
strcmp("SAMU"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("SAMU")))
            {
                
SendClientMessage(playeridCOLOR_ALLDEPT"EMERGENCIA: Vocк optou por SAMU, Espere.");
                
Mobile[playerid] = 914;
                
SendClientMessage(playeridTEAM_CYAN_COLOR"Denuncia: Por favor me dк uma breve descriзгo do Incidente.");
                return 
0;
            }
            else
            {
                
SendClientMessage(playeridCOLOR_ALLDEPT"EMERGENCIA: Desculpe nгo entendo... Policia ou SAMU?");
                return 
0;
            }
        }
        if(
IsPlayerConnected(Mobile[playerid]))
        {
            if(
Mobile[Mobile[playerid]] == playerid)
            {
                
SendClientMessage(Mobile[playerid], COLOR_YELLOW,string);
            }
        }
        else
        {
            
SendClientMessage(playeridCOLOR_YELLOW,"Ninguйm lб");
        }
        return 
0;
    }
    if (
realchat)
    {
        if(
gPlayerLogged[playerid] == 0)
        {
            return 
0;
          }
        if(
PlayerInfo[playerid][pMaskuse] == 1)
        {
            
format(stringsizeof(string), "Mascarado diz: %s"text);
            
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            
SetPlayerChatBubble(playeridtextCOLOR_AZULBB20.010000);
            
//ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0);
        
}
        else
        {
               
format(stringsizeof(string), "%s diz: %s"PlayerName(playerid), text);
               
ProxDetector(20.0playeridstring,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
               
SetPlayerChatBubble(playeridtextCOLOR_AZULBB20.010000);
               
//ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1);
        
}
        return 
0;
      }
    return 
true;

Reply
#2

Uй ja usei esse gamemode e ele tava normal.

fez alguma alteraзгo?
Reply
#3

Algumas mas para corrigir bugs, por exemplo

os vagos quando apertava /ajuda dominava e quando usava o /do ele dizia que era os ballas. mais fexaram uma chave errada no codigo e eu o consertei
Reply
#4

Oque vocк mudou nesse bolinho de codes ai?
Reply
#5

nesse aew nada
Reply
#6

pawn Код:
if (realchat)
    {
        if(gPlayerLogged[playerid] == 0)
        {
            return 0;
          }
        if(PlayerInfo[playerid][pMaskuse] == 1)
        {
            format(string, sizeof(string), "Mascarado diz: %s", text);
            ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            SetPlayerChatBubble(playerid, text, COLOR_AZULBB, 20.0, 10000);
            //ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0);
        }
        else
        {
               format(string, sizeof(string), "%s diz: %s", PlayerName(playerid), text);
               ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
               SetPlayerChatBubble(playerid, text, COLOR_AZULBB, 20.0, 10000);
               //ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1);
        }
        return 0;
      }
    return true;
}
Esse aqui e o chat normal mais nгo vejo nada demais nele.
Reply
#7

exatamente pra vc ter uma ideia eu ja tirei esta parte e compilei o codigo mesmo ele sem esta parte da este problema
Reply
#8

pawn Код:
if (realchat)
Procure por isso e ve se tem outro.
Reply
#9

Uma pergunta que percebi agora se tiver outro OnPlayerText(playerid, text[] em uma fs por fora pode dar conflito?
Reply
#10

Claro que pode ;s se ela usar mesma adaptaзхes doque seu gm da conflito sim.
Reply
#11

consegui resolver era isso mesmo agora ta tranquilo so to precisando agora de um dialog para o laptop dos hitmans que nao ta funcionando aqui so aparece o text la no canto da tela
Reply
#12

Nгo й so uma dialog tem que usar dialogresponse.
https://sampwiki.blast.hk/wiki/OnDialogResponse
Reply
#13

to comeзando agora com o pawn o bom que tem algumas coisas que da pra entender por causa do php, mais outras eu quebro a kbзa. vc teria alguma coisa do tipo para eu colocar no meu GM. no /laptop
Reply
#14

Sim,mais eu teria que procurar as Rensponse isso que й o foda.
Reply
#15

o meu aqui ta assim

PHP код:
if(strcmp(cmd,"/laptop",true)==0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if(
GetPlayerOrg(playerid) == || GetPlayerOrg(playerid) == 22)
            {
                if(
ConnectedToPC[playerid] == 255)
                {
                    
SendClientMessage(playeridCOLOR_LIGHTBLUE"* Vocк desligou seu laptop, e se desconectou de sua Agencia.");
                    
ConnectedToPC[playerid] = 0;
                    return 
true;
                }
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
SendClientMessage(playeridCOLOR_LIGHTBLUE"* Vocк ligou seu laptop, e se conectou a sua Agкncia.");
                
SendClientMessage(playeridCOLOR_WHITE"|___ *Agencia dos Assasinos* ___|");
                
SendClientMessage(playeridCOLOR_YELLOW2"|");
                
SendClientMessage(playeridCOLOR_YELLOW2"| * Noticias");
                
SendClientMessage(playeridCOLOR_YELLOW2"| * Contratos");
                
SendClientMessage(playeridCOLOR_YELLOW2"| * DarCont");
                
SendClientMessage(playeridCOLOR_YELLOW2"| * Pedido");
                
SendClientMessage(playeridCOLOR_YELLOW2"| * Membros");
                
SendClientMessage(playeridCOLOR_YELLOW2"| * Sair");
                
SendClientMessage(playeridCOLOR_WHITE"|______________|00:00|");
                
ConnectedToPC[playerid] = 255;
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo e um Assasino!");
                return 
true;
            }
        }
        return 
true;
    } 
Reply
#16

Resolvido
Reply
#17

Evite doubles post.
Reply
#18

Isso nгo foi double Post olha as datas
Reply
#19

Nгo й permitido "Double Post" (Postagem dupla). Existe um botгo chamado "Editar" .g
Reply
#20

Sim , mais jб se Passo 24 , Ou Seja Alguem me falo isso nгo lenbro quem agora.

Fim de Papo!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)