29.06.2009, 14:11
this is the cmd i use for weed in my server
i was wondering if i can make a command like /myweed and it will say how much weed u have
Код:
hasweed[playerid]++;
Код:
if(!strcmp(cmdtext,"/plantweed",true)) { if(WeedAlreadyPlanted[playerid]) return SendClientMessage(playerid,0xFF0000AA,"You already planted a plant! Wait first!"); SendClientMessage(playerid,0xFFFFFFFF,"Your weed has been planted, You payed for a seed"); GivePlayerMoney(playerid,-1000); SetTimerEx("GrowWeed",60000,0,"i",playerid); WeedAlreadyPlanted[playerid] = true; return 1; }
Код:
public GrowWeed(playerid) { SendClientMessage(playerid,0xffffffaa,"Your plant has grown. Your weed has been harvested."); hasweed[playerid]++; WeedAlreadyPlanted[playerid] = false; return 1; }