Problem with Gametextforall because GivePlayerMoneyEx
#1

Hey Guys
i have a Problem with Gametextforall when i change GivePlayerMoney to GivePlayerMoneyEx the Gametext dont will show at the end of the round

pawn Код:
if(HumanKills > ZombieKills)
        {
            format(str,144,"[[~g~Winner: ~g~Humans ~p~Won!~n~]]~g~Next Map: ~r~%s]]",MapNames[Map]);
            GameTextForAll(str,5000,3);
            ZombieKills=0;
            HumanKills=0;
            for(new i=0;i<MAX_PLAYERS;i++)
            {
                LoadingP(i);
                if(IsPlayerConnected(i) && PlayerTeam[i] == TEAM_HUMAN) GivePlayerMoneyEx (i,6000);
                SendClientMessage(i,0xCCFF99FF,"«| HUMANS WON! |»");
                SendClientMessage(i,0xCCFF99FF,"«| {FB0000}Please Wait {E6C738}5 Seconds For Next {33B752}Map! |»");
            }
        }
        else if(ZombieKills > HumanKills)
        {
            format(str,144,"[[~g~Winner: ~r~Zombies ~p~Won!~n~]]~g~Next Map: ~r~%s]]",MapNames[Map]);
            GameTextForAll(str,5000,3);
            ZombieKills=0;
            HumanKills=0;

            for(new i=0;i<MAX_PLAYERS;i++)
            {
                LoadingP(i);
                if(IsPlayerConnected(i) && PlayerTeam[i] == TEAM_ZOMBIE) GivePlayerMoneyEx (i,6000);
                SendClientMessage(i,0xCCFF99FF,"«| ZOMBIES WON! |»");
                SendClientMessage(i,0xCCFF99FF,"«| {FB0000}Please Wait {E6C738}5 Seconds For Next {33B752}Map! |»");
            }
        }
        else if(ZombieKills == HumanKills)
        {
            format(str,144,"[[~g~Winner: ~y~No one ~p~Won!~n~]]~g~Next Map: ~r~%s ]]",MapNames[Map]);
            GameTextForAll(str,5000,3);
            ZombieKills=0;
            HumanKills=0;
           
            for(new i=0;i<MAX_PLAYERS;i++)
            {
                LoadingP(i);
                SendClientMessage(i,0xCCFF99FF,"«| NOBODY WON! |»");
                SendClientMessage(i,0xCCFF99FF,"«| {FB0000}Please Wait {E6C738}5 Seconds For Next {33B752}Map! |»");
            }
        }
    }
Reply
#2

Try this pack:
pawn Код:
if (HumanKills > ZombieKills)
{
    format(str,144,"[[~g~Winner: ~g~Humans ~p~Won!~n~]]~g~Next Map: ~r~%s]]",MapNames[Map]);
    GameTextForAll(str,5000,3);
    ZombieKills=0;
    HumanKills=0;
    for(new i=0;i<MAX_PLAYERS;i++)
    {
        if(IsPlayerConnected(i))
        {
            LoadingP(i);
            if(PlayerTeam[i] == TEAM_HUMAN)
            {
                GivePlayerMoneyEx(i,6000);
                SendClientMessage(i,0xCCFF99FF,"«| HUMANS WON! |»");
                SendClientMessage(i,0xCCFF99FF,"«| {FB0000}Please Wait {E6C738}5 Seconds For Next {33B752}Map! |»");
            }
        }
    }
}
else if (ZombieKills > HumanKills)
{
    format(str,144,"[[~g~Winner: ~r~Zombies ~p~Won!~n~]]~g~Next Map: ~r~%s]]",MapNames[Map]);
    GameTextForAll(str,5000,3);
    ZombieKills=0;
    HumanKills=0;
    for(new i=0;i<MAX_PLAYERS;i++)
    {
        if(IsPlayerConnected(i))
        {
            LoadingP(i);
            if(PlayerTeam[i] == TEAM_ZOMBIE)
            {
                GivePlayerMoneyEx(i,6000);
                SendClientMessage(i,0xCCFF99FF,"«| ZOMBIES WON! |»");
                SendClientMessage(i,0xCCFF99FF,"«| {FB0000}Please Wait {E6C738}5 Seconds For Next {33B752}Map! |»");
            }
        }
    }
}
else
{
    format(str,144,"[[~g~Winner: ~y~No one ~p~Won!~n~]]~g~Next Map: ~r~%s ]]",MapNames[Map]);
    GameTextForAll(str,5000,3);
    ZombieKills=0;
    HumanKills=0;
    for(new i=0;i<MAX_PLAYERS;i++)
    {
        if(IsPlayerConnected(i))
        {
            LoadingP(i);
            SendClientMessage(i,0xCCFF99FF,"«| NOBODY WON! |»");
            SendClientMessage(i,0xCCFF99FF,"«| {FB0000}Please Wait {E6C738}5 Seconds For Next {33B752}Map! |»");
        }
    }
}
Reply
#3

Not working..
Help pls
Reply
#4

Show us the GivePlayerMoneyEx function.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)