Help for my Task System. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help for my Task System. (
/showthread.php?tid=252125)
Help for my Task System. -
Vero - 30.04.2011
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?