growing pot command help
#1

i am using the united roleplay script for my gomemode and i want to set it so i can grow more then 1 plant at a time can someone help me out with this or tell me how to fix it

PHP код:
if(strcmp(cmd,"/plantweed",true)==0)
    {
        if(
IsPlayerConnected(playerid))
        {
         if (
PlayerInfo[playerid][pJob] != 4)
            {
                
SendClientMessage(playerid,COLOR_GREY"You are not a Drug Dealer !");
                return 
1;
            }
            new 
name[MAX_PLAYER_NAME];
            
GetPlayerName(playeridnamesizeof(name));
            if(
GetPlayerState(playerid) != 1) return SendClientMessage(playeridCOLOR_GREY"   You must be on foot !");
            if(
GetPlayerInterior(playerid) > 0) return SendClientMessage(playeridCOLOR_GREY"   You must be outside to plant your seeds.");
            if(
PlayerInfo[playerid][pSeeds] == 0) return SendClientMessage(playeridCOLOR_GREY"   You don't have any Seeds!");
            if(
PlayerInfo[playerid][pSeeds] < 10) return SendClientMessage(playeridCOLOR_GREY"   You don't have enough Seeds!");
            if(
HasPlantWeed[playerid] == 1) return SendClientMessage(playeridCOLOR_GRAD2"* You have already planted a weed !");
            new 
Float:XFloat:YFloat:Z;
            
ApplyAnimation(playerid"BOMBER""BOM_Plant"4.000000);
            
GetPlayerPos(playeridXYZ);
            
Weed_x[playerid] = X;
            
Weed_y[playerid] = Y;
            
Weed_z[playerid] = Z;
            
Weed[playerid] = CreateDynamicObject(3409XYZ-1.8000);
            
HasPlantWeed[playerid] = 1;
            
PlayerInfo[playerid][pSeeds] -= 10;
            
format(stringsizeof(string), "* %s plants some seeds."name);
            
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            
SendClientMessage(playeridCOLOR_GREEN"You have planted your seeds! Every minute, your plant will make one gram of weed.");
            
SendClientMessage(playeridCOLOR_GREEN"If your plant won't picked within 70 minutes, it will rot and you will lose it.");
            
SendClientMessage(playeridCOLOR_GREEN"Also remember that anyone can /pickweed if they find your plant, so be careful.");
        }
        return 
1;
    } 
Reply


Messages In This Thread
growing pot command help - by Matthew_Garrowo - 26.04.2013, 06:08
Re: growing pot command help - by Yashas - 26.04.2013, 06:22
Re: growing pot command help - by Pottus - 26.04.2013, 07:16
Re: growing pot command help - by Isolated - 26.04.2013, 08:11
Re: growing pot command help - by Pottus - 26.04.2013, 08:19
Re: growing pot command help - by Matthew_Garrowo - 26.04.2013, 18:24
Re: growing pot command help - by Pottus - 26.04.2013, 18:49
Re: growing pot command help - by Matthew_Garrowo - 26.04.2013, 19:40
Re: growing pot command help - by Matthew_Garrowo - 27.04.2013, 00:08

Forum Jump:


Users browsing this thread: 1 Guest(s)