Command Help [ REP ++ ]
#1

FIXED !
Reply
#2

PHP код:
if(dialogid == 981)
        {
        if(
response)
        {
            foreach(
Playeri)
            {
               if(
PlayerInfo[i][pLeader] == 1) { PlayerInfo[playerid][pTeam] = 2gTeam[playerid] = 2ftext "PD"ChosenSkin[playerid] = 280SetPlayerSkin(playerid280); }
               else if(
PlayerInfo[i][pLeader] == 2) { PlayerInfo[playerid][pTeam] = 2gTeam[playerid] = 2ftext "FBI"ChosenSkin[playerid] = 24SetPlayerSkin(playerid24); }
               else if(
PlayerInfo[i][pLeader] == 3) { PlayerInfo[playerid][pTeam] = 1gTeam[playerid] = 1ftext "SWAT"ChosenSkin[playerid] = 285SetPlayerSkin(playerid285); }
               else if(
PlayerInfo[i][pLeader] == 4) { PlayerInfo[playerid][pTeam] = 5gTeam[playerid] = 5ftext "MD"ChosenSkin[playerid] = 71SetPlayerSkin(playerid71); }
               else if(
PlayerInfo[i][pLeader] == 5) { PlayerInfo[playerid][pTeam] = 6gTeam[playerid] = 6ftext "Yakuza"ChosenSkin[playerid] = 121SetPlayerSkin(playerid121); }
               else if(
PlayerInfo[i][pLeader] == 6) { PlayerInfo[playerid][pTeam] = 7gTeam[playerid] = 7ftext "LCN"ChosenSkin[playerid] = 111SetPlayerSkin(playerid111); }
               else if(
PlayerInfo[i][pLeader] == 7) { PlayerInfo[playerid][pTeam] = 12gTeam[playerid] = 12ftext "Vlada"ChosenSkin[playerid] = 163SetPlayerSkin(playerid163); }
               else if(
PlayerInfo[i][pLeader] == 8) { PlayerInfo[playerid][pTeam] = 12gTeam[playerid] = 12ftext "Hitman"ChosenSkin[playerid] = 20SetPlayerSkin(playerid20); }
               else if(
PlayerInfo[i][pLeader] == 9) { PlayerInfo[playerid][pTeam] = 12gTeam[playerid] = 12ftext "Beyond News"ChosenSkin[playerid] = 171SetPlayerSkin(playerid171); }
               else if(
PlayerInfo[i][pLeader] == 10) { PlayerInfo[playerid][pTeam] = 15gTeam[playerid] = 15ftext "Taxi"ChosenSkin[playerid] = 210SetPlayerSkin(playerid210); }
               else if(
PlayerInfo[i][pLeader] == 11) { PlayerInfo[playerid][pTeam] = 16gTeam[playerid] = 16ftext "LSG"ChosenSkin[playerid] = 175SetPlayerSkin(playerid175); }
               else if(
PlayerInfo[i][pLeader] == 12) { PlayerInfo[playerid][pTeam] = 16gTeam[playerid] = 16ftext "GSF"ChosenSkin[playerid] = 105SetPlayerSkin(playerid105); }
               
GetPlayerName(playeridsendernamesizeof(sendername));
               
PlayerInfo[playerid][pMember] = PlayerInfo[i][pLeader];
               
PlayerInfo[playerid][pRank] = 1;
               
format(stringsizeof(string), "{37F906}INFO:{FFFFFF}Ja Prifativte ponudata i sega ste vo %s"ftext);
               
SendClientMessage(playeridCOLOR_WHITEstring);
               
format(stringsizeof(string), "{37F906}INFO:{FFFFFF}%s ja prifati ponudata za vlez vo %s."sendername,ftext);
               
SendClientMessage(playeridBELAstring);
               
Pokana[playerid] = 0;
               
format(stringsizeof(string), "%s ja prifati ponudata za clenstvo."sendername);
               
ProxDetector(10.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            }
        }
        else
        {
            
GetPlayerName(playeridsendernamesizeof(sendername));
            
SendClientMessage(playeridCOLOR_WHITE,"{37F906}INFO:{FFFFFF}Ja Odbivte ponudata za Clenstvo!");
            
format(stringsizeof(string), "%s ja odbi ponudata za clenstvo."sendername);
            
ProxDetector(10.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            
Pokana[playerid] = 0;
        }
        } 
Reply
#3

Not working again HELP ! PLEASE !
Reply
#4

Please explain clearly I don't really get you .
Reply
#5

I don't understand you but here is the command /invite

pawn Код:
if(strcmp(cmd, "/invite", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_WHITE, "{37F906}INFO:{FFFFFF}/invite [ID/Ime na Igrac]");
                return 1;
            }
            giveplayerid = ReturnUser(tmp);
            if(IsPlayerConnected(giveplayerid))
            {
                if(giveplayerid != INVALID_PLAYER_ID)
                {
                    if(ProxDetectorS(3.0, playerid, giveplayerid))
                    {
                        if (PlayerInfo[playerid][pLeader] >= 1)
                        {
                            new sendername[MAX_PLAYER_NAME];
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                            new string[261];
HERE IS THE DIALOG BUT I DONT SHOW HIM SORRY !
                            format(string, sizeof(string), "%s go pokanuva igracot %s da bide negov clen", sendername, giveplayer);
                            printf("%s go pokanuva igracot %s da bide negov clen.", sendername, giveplayer);
                            ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                            Pokana[playerid] = 1;
                            return 1;
                        }
                    }
                }
            }
        }
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)