Help for my Task System.
#1

Ok i am creating a Task System so players can complete them and earn rewards.

Basically i'm trying to get it so when they complete a task it SendClientMessages, "Congratulations you have completed a task" or something like that.

Here is the main part:

pawn Код:
case 108:
        {
            if(!response)
            {
                SendClientMessage(playerid, WHITE, "You cancelled.");
                return 1;
            }
           
            switch( listitem )
            {
                case 0:
                {
                    if( PlayerInfo[playerid][BT1] >= 1)
                    {
                        SendClientMessage(playerid, LGREEN, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" );
                        SendClientMessage(playerid, WHITE, "You have completed this task and earned your reward!" );
                        SendClientMessage(playerid, LGREEN, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" );
                    }
                    else
                    {
                        if( PlayerInfo[playerid][BT1] >= 0)
                        {
                            SendClientMessage(playerid, RED, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" );
                            SendClientMessage(playerid, WHITE, "You havn't yet completed this task!" );
                            SendClientMessage(playerid, RED, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" );
                        }
                    }
                }
            }
And here is what I use to make the task complete if you know what i mean?

pawn Код:
PlayerInfo[playerid][BT1] = 1;
So yeah can someone help me?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)