3 Noob questions. (Might pay)
#1

Please help, I might pay a buck XD.


Help 1
When you type /sellart .. It will ONLY sell the art if you have 1 .. If you have 2 art it will say "You don't have enough."
Код:
 if(!strcmp(cmdtext,"/Sellart",true))
{
if(ART[playerid] == 1)
{
  SendClientMessage(playerid,COLOR_GREEN,"________________Art Sold!_____________________________");
  SendClientMessage(playerid,COLOR_GREEN,"You sell your peace of art, To the art muesem.");
  ART[playerid] = 0;
  GivePlayerMoney(playerid,50);
  SendClientMessage(playerid,COLOR_GREEN,"+50 USD.");
  SendClientMessage(playerid,COLOR_GREEN,"________________________________________________________");
}
else
{
SendClientMessage(playerid,COLOR_GREEN,"You don't have art to sell!");
}
return 1;
}
Help 2
You can type /drawart .. And even though you have 0 pencils and paper you will STILL create art .. Your pencils and paper will just go -1 ... I want to do it so if you don't have at least 1
Код:
 PAPER[MAX_PLAYERS];
Код:
PENCIL[MAX_PLAYERS];
Then you can't type /drawart.
Код:
if(!strcmp(cmdtext,"/Drawart",true))
{
  SendClientMessage(playerid,COLOR_GREEN,"________________You start to draw._____________________");
  SendClientMessage(playerid,COLOR_GREEN,"You grab one pencil and a sheet of paper out your backpack.");
  SendClientMessage(playerid,COLOR_GREEN,"You slowly start to draw, Working on your peace of art.");
  SendClientMessage(playerid,COLOR_GREEN,"Estimated time left 1 minute.");
  SetTimerEx("MAKINGART",60000,0,"i",playerid);
	SendClientMessage(playerid,COLOR_GREEN,"________________________________________________________");
  return 1;
}
Help 3
When you type /drawart you can type it as many times as you want! ..
I want to make it so that if you are drawing art and you try to type /drawart again it will say "Wait until you finish your first art first!".

Код:
if(!strcmp(cmdtext,"/Drawart",true))
{
  SendClientMessage(playerid,COLOR_GREEN,"________________You start to draw._____________________");
  SendClientMessage(playerid,COLOR_GREEN,"You grab one pencil and a sheet of paper out your backpack.");
  SendClientMessage(playerid,COLOR_GREEN,"You slowly start to draw, Working on your peace of art.");
  SendClientMessage(playerid,COLOR_GREEN,"Estimated time left 1 minute.");
  SetTimerEx("MAKINGART",60000,0,"i",playerid);
	SendClientMessage(playerid,COLOR_GREEN,"________________________________________________________");
  return 1;
}
Reply


Messages In This Thread
3 Noob questions. (Might pay) - by Sal_Kings - 06.09.2009, 13:22
Re: 3 Noob questions. (Might pay) - by dice7 - 06.09.2009, 13:53
Re: 3 Noob questions. (Might pay) - by Clavius - 06.09.2009, 13:56
Re: 3 Noob questions. (Might pay) - by Sal_Kings - 06.09.2009, 15:09

Forum Jump:


Users browsing this thread: 1 Guest(s)