Percent on planting
#5

pawn Код:
CMD:pickweed(playerid,params[])
{
    for(new i = 0; i < MAX_WEED; i++)
    {
      if(!IsPlayerInRangeOfPoint(playerid,2.5,winfo[i][poswx],winfo[i][poswy],winfo[i][poswz]-1)) continue;
      if(winfo[i][finished] == 0) return SendClientMessage(playerid,-1,"Your weed is not fully grown yet.");
      if(IsPlayerInVehicle(playerid,GetPlayerVehicleID(playerid))) return SendClientMessage(playerid,-1,"You need to be on foot to pick your weed.");
      DestroyDynamicObject(mariaobject[i]);
      DestroyDynamic3DTextLabel(winfo[i][labelweed]);
      pinfo[playerid][weed] = pinfo[playerid][weed] + 5;
      limit--;
    }

    return 1;
}
How can I possibly add it to the command and do I need to define it anywhere?
Reply


Messages In This Thread
Percent on planting - by Zens - 24.04.2014, 14:46
AW: Percent on planting - by Nero_3D - 24.04.2014, 18:13
Re: AW: Percent on planting - by Zens - 24.04.2014, 20:17
AW: Percent on planting - by Nero_3D - 24.04.2014, 20:22
Re: AW: Percent on planting - by Zens - 24.04.2014, 21:29
AW: Percent on planting - by Nero_3D - 25.04.2014, 12:32
Re: Percent on planting - by Zens - 25.04.2014, 14:27
Re: Percent on planting - by Zens - 28.04.2014, 18:48
AW: Percent on planting - by Macronix - 28.04.2014, 20:11

Forum Jump:


Users browsing this thread: 2 Guest(s)