3 Noob questions. (Might pay)
#2

I don't see a problem with the first code. You shore it doesn't work ?

Second code:
pawn Код:
if(!strcmp(cmdtext,"/Drawart",true))
{
  if(PAPER[playerid] <= 0) return SendClientMessage(playerid,COLOR_GREEN,"You need some paper");
  if(PENCIL[playerid] <= 0) return SendClientMessage(playerid,COLOR_GREEN,"You need a pencil");

  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.");
  SendClientMessage(playerid,COLOR_GREEN,"________________________________________________________");
  return 1;
}
Third code
pawn Код:
//top of script
new CreatingArt[MAX_PLAYERS];

//onplayercommandtext
if(!strcmp(cmdtext,"/Drawart",true))
{
  if(CreatingArt[playerid] == 1) return SendClientMessage(playerid,COLOR_GREEN,"You are already making art. Wait 1 minute to finish");
  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);
  CreatingArt[playerid] = 1;
  SendClientMessage(playerid,COLOR_GREEN,"________________________________________________________");
  return 1;
}

forward MAKINGART(playerid);
public MAKINGART(playerid)
{
  CreatingArt[playerid] = 0;
  SendClientMessage(playerid,COLOR_GREEN,"You finished making art. You can now draw more art");
}
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)