SA-MP Forums Archive
Problem with Gametextforall because GivePlayerMoneyEx - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with Gametextforall because GivePlayerMoneyEx (/showthread.php?tid=432067)



Problem with Gametextforall because GivePlayerMoneyEx - LuffyD - 20.04.2013

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! |»");
            }
        }
    }



AW: Problem with Gametextforall because GivePlayerMoneyEx - HurtLocker - 20.04.2013

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! |»");
        }
    }
}



AW: Problem with Gametextforall because GivePlayerMoneyEx - LuffyD - 17.05.2013

Not working..
Help pls


Re: Problem with Gametextforall because GivePlayerMoneyEx - Emmet_ - 17.05.2013

Show us the GivePlayerMoneyEx function.