How can i merge this?
#1

pawn Код:
command(scavenge, playerid, params[])
{
    if(PlayerInfo[playerid][Srt] >= 1)
    {
        SendClientMessage(playerid, COLOUR_ORANGE, "Hint: You need to wait 10 minutes!" );
    }
    else
    {
        if(IsPlayerInRangeOfPoint(playerid, 100,637.3656, 838.5986, -42.9609))
        {
            {
                new string[ 128 ];

                format( string, sizeof( string ), "* %s has started to scavenge.", GetName( playerid ) );
                NearByMessage( playerid, COLOUR_YELLOW, string );
                TextDrawShowForPlayer(playerid, BlackTD);
                TogglePlayerControllable(playerid, 0);
                SetTimerEx("scavengetimer", 10000, false, "i", playerid);
                PlayerInfo[playerid][Srt] = 1;
            }
        }
With this

pawn Код:
if(PlayerInfo[playerid][BT1] >= 0)
        {
            SendClientMessage(playerid, COLOUR_LGREEN, "You have completed the Scavenger Task and have earned a reward!" );
            PlayerInfo[playerid][BT1] = 1;
            PlayerInfo[playerid][TasksComplete]++;
I want it so that the Task message appears only once. I can get it to appear every time they use scavenge but that's not what I want!

Please help!
Reply
#2

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)