30.04.2011, 10:51
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:
And here is what I use to make the task complete if you know what i mean?
So yeah can someone help me?
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, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" );
}
}
}
}
pawn Код:
PlayerInfo[playerid][BT1] = 1;