06.09.2009, 13:22
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."
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
Then you can't type /drawart.
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!".
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; }
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];
Код:
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; }
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; }